0
votes
0answers
215 views

add_rewrite_rule not working

I'm trying to do some url rewriting. I've picked this example right off the wordpress wiki here: add_rewrite_rule('^nutrition/([^/]*)/([^/]*)/?','index.php?foo=bar','top'); The wiki page says: ...
9
votes
1answer
816 views

Using the Rewrite API to Construct a RESTful URL

I'm trying to generate rewrite rules for a RESTful API. I just want to see if there is a better way to make this work than having to write out every possible rewrite combination. Ok so I have 4 ...
0
votes
2answers
74 views

Is Wordpress API visible from PHP file called in htaccess

I'm trying to add some rewriterules in the .htaccess file to deal with hotlinked images - specifically I want to add the URL from the post where the image appeared to the header location information ...
0
votes
1answer
181 views

How to create download links based on Custom Fields with Rewrite API

For me this is quite hard to do, but I guess that this could be easily done by an expert. :) Let's suppose I have a post, which is a custom post type resources, with the following data: Post Slug: ...
16
votes
8answers
11k views

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 ...