Need help with add_rewrite_rule

SOLUTION I’ve gone with Update 3 and have got it working. What I had misunderstood, was that I believed that a rewrite rule would change designers/?designer=some-designer&bid=9 to /designers/some-designer. But it is of course the other way around. I’ve been doing some research, but I don’t quite get how to use add_rewrite_rule(). This post is pretty … Read more

How do you create a “virtual” page in WordPress

I’m trying to create a custom API endpoint in WordPress, and I need to redirect requests to a virtual page in the root of WordPress to an actual page that ships with my plug-in. So basically, all requests to the one page are actually routed to the other. Example: http://mysite.com/my-api.php => http://mysite.com/wp-content/plugins/my-plugin/my-api.php The point of … Read more

How to create custom URL routes?

I have a very peculiar requirement, hopefully, I can explain it without being too confusing. I created a page template where I list some properties I get from an external XML file, so far no problems, let’s say the URL is like this: http://www.example.com/properties/ Each property has a link that should redirect the user to … Read more