1
vote
0answers
59 views

WordPress URL Rewrite for dynamic and customized URL

I'm working on a website in WordPress where I have to show AP News from external Database and not from the WordPress DB. I have created few shortcodes for this, which are working absolutely fine. I ...
0
votes
1answer
196 views

add_rewrite_rule not working for me

I have the following rewrite tags defined: // ADD REWRITE TAG FOR 'VEHICLE MAKES' add_rewrite_tag('%make%','([^&]+)'); // ADD REWRITE TAG FOR 'BODY STYLES' ...
1
vote
3answers
2k views

How can I Rewrite a 'page' URL based on query string parameters?

I have the following page which contains a single post and a number of comments: http://mysite.com/tips When a user posts a comment, I add meta-data to it so I can filter comments by using these ...
2
votes
4answers
1k views

rewrite rules and querystring

When I go to the url mysite.com/photos/120 I'm wanting to get the 120 out. In the PHP I want to be able to grab these "parameters" like the url was mysite.com?page=photos&id=120 or even just ...
1
vote
1answer
270 views

Can't add external rewrites

I've got the following code in my functions.php function add_custom_rewrite_rules(){ add_rewrite_tag('%gallery%','([^/]+)', 'gallery='); add_rewrite_tag('%album%','([^/]+)', 'album='); ...
3
votes
1answer
834 views

Can 'numberposts' be passed in the URL query string?

I'm running into circles trying to set up a simple rewrite rule, and thought I'd run the question by some of the rewrite experts here. I have a custom post type, "mealplan", and I'm trying to ...