rewrite url with parameter or pagination beyond certain value does not work
rewrite url with parameter or pagination beyond certain value does not work
rewrite url with parameter or pagination beyond certain value does not work
register_taxonomy and variable rewrite slug
Issue with using add_rewrite_rule() for post querying custom fields
Custom permalink leads to index page
Image URLs not redirecting properly
No,it is not possible. The reason behind this is that, the child page with the parent slug which is same as the cpt slug will be behaved as the cpt post and wp will search for that post rather than looking for the child page with same parent slug. And if you try the parent … Read more
rewrite url in wordpress
I did a lot of digging and I came up with this code to solve the problem as well as adding “.html” to pages, categories and tags. The permalink setting takes care of posts. function hpct_page_rewrite($rules) { foreach ($rules as $key => $value) { $newrules[str_replace(‘/?’, ‘.html’, $key)] = $value; } return $newrules; } function hpct_page_link($link) … Read more
I got an answer on the WordPress forums. Here is the working code for those looking to do something similar: add_filter( ‘post_type_link’, ‘change_webinar_links’, 10, 2 ); function change_webinar_links( $link, $post) { if ( $post->post_type == ‘tribe_events’ && tribe_event_in_category(‘webinar’) ) { $link = trailingslashit( home_url(‘/webinars/’ . $post->post_name ) ); } return $link; } add_action( ‘init’, ‘webinar_rewrite_rule’, … Read more
You get a 404 because you use the wordpress paged query var, and therefor wordpress tries to locate in the main query that page for that user, and if the user is not an author, or just havn’t published anything, there will be no posts for that page and wordpress will set the headers to … Read more