Skip to content
Advertisement

Tag: custom-wordpress-pages

Issues when using WordPress rewrite rules then accessing parameter using get_query_var

I’m developing a WP plugin and have a WordPress URL: (e.g.: http://localhost/testsite1/coder/?id=66), and have attempted to add a rewrite rule to http://localhost/testsite1/coder/66/ using the following rule: I have registered a WP Query Var using: but when at URL http://localhost/testsite1/coder/66/, when I run code echo get_query_var(‘id’); nothing is displayed however when at URL http://localhost/testsite1/coder/?id=66 the echo statement will display 66. What

WordPress additional info

That’s what my post looks like at the moment: I have the title ( David Art ) and the content (image + 1.25 eth). I as well have featured image: When I’m trying to get the title and featured image it works ok. But there are problems with content since I`m only able to get it together using the_content();. Is

Advertisement