Rewrite the default post object’s permalink
Rewrite the default post object’s permalink
Rewrite the default post object’s permalink
Don’t really know why but here is a working solution : $blogCategoryBaseSlug = ‘articles’; $labels = array( ‘name’ => __( ‘Blog Post’, ‘Post Type General Name’, $this->text_domain ), ‘singular_name’ => __( ‘Blog Post’, ‘Post Type Singular Name’, $this->text_domain ), ‘menu_name’ => __( ‘Blog Posts’, $this->text_domain ), ‘name_admin_bar’ => __( ‘Blog Post’, $this->text_domain ), ‘archives’ => … Read more
Custom taxonomy rewrite with query var returns %2F in URL
Put this code into your function.php. add_filter(‘redirect_canonical’,’pif_disable_redirect_canonical’); function pif_disable_redirect_canonical($redirect_url) { if (is_singular()) $redirect_url = false; return $redirect_url; } Hope this will help you
I think if you change the rewrite in your register_taxonomy $args ‘rewrite’ => array( ‘slug’ => ‘photographies/couleurs’,’with_front’ => false ), This will probably clash with rewriting the custom post type so you’ll more than likely get a 404 on this url: http://thewebsite/photographies/ but if you don’t need that url then this solution will help you … Read more
Just use this rewrite rule in your htaccess file, it will strip all query strings. RewriteRule ^(.*) /$1? [R=301,L] to allow more rules to follow use this instead RewriteRule ^(.*) /$1? [R=301] remove 301 like this RewriteRule ^(.*) /$1? [NE,L] and refer the correct url for search engines. without 301 you will need to make … Read more
Rewriting the URL of a custom post to a certain page
Custom Rewrite rule to captured post (rewrite rule to rewrite rule)
Use a plugin or try this trick: Please notice the trick may not work in the future. via wpmudev
Assuming you make your form’s action point to the correct URL, here are Two (and a half) Options: With Javascript (jQuery) jQuery(document).ready( function() { jQuery(“#searchform”).submit( function() { self.location.href = jQuery(this).attr(“action”) + jQuery(“#s”).val(); return false; }); }); You could also do it without jQuery (if you don’t use jQuery on your site and don’t want to … Read more