standard post with extra parameter brings permalink problem
standard post with extra parameter brings permalink problem
standard post with extra parameter brings permalink problem
You need to use your page id of “People” page. If i assume it is 12 then this will do, add_rewrite_rule(‘^people/([^/]*)/?’,’index.php?page_id=12&name=$matches[1]’,’top’);
Permalink of Custom Post Type
Display results from two Custom Post Types in page template
The first important difference between your rewrite rule, and the ones that Pippin has provided is that all of his rewrite rules point to index.php. This is an absolute must, you won’t get it to work any other way, all requests must point to index.php with your query vars appended. The second important thing to … Read more
Your best bet for an easy solution is to actually use the “Custom Structure” option in your WordPress admin under Settings > Permalinks. There are a number of other structure tags you may use as seen in the Codex. If you’re looking for even more customization and manual control, it’s actually a pretty complex topic … Read more
I’m pretty sure you have wrong “rewrite” parameter in your add_rewrite_rule call. I’m writing it directly in here, so it can be buggy… But it should look something like this: add_rewrite_rule(‘^authors/([^/]*)/([^/]*)/?’,’index.php?page_id=<YOUR AUTHOR PAGE ID>&my_author_name=$matches[1]&my_author_pic=$matches[2]’,’top’); Then you can use add_rewrite_tag (http://codex.wordpress.org/Rewrite_API/add_rewrite_tag) to add your custom query variables (my_author_name and my_author_pic). And in your author page you … Read more
The Yoast SEO wordpress plugin is the culprit in this case. It was redirecting all rewrite urls to the base url. You can turn it off in the plugin settings page.
Custom Rewrite for Profiles
I think that portfolios and locations are two custom types right? In this case you have to change the slug options inside the custom type registration: register_post_type( ‘portfolios’, array( … ‘rewrite’ => array(“slug” => “/production/portfolios”, “with_front” => false), ) );