Tag Info

Hot answers tagged

3

Yes, it is possible. WordPress frontend workflow can be summarized like so: A url is visited By checking current url against all the defaults and custom rewrite rules the url is "converted" to a set of arguments for WP_Query. This is done by the parse_request method of an instance of the WP class stored in the global $wp variable An instance of WP_Query ...


1

It can be done by writing a code on post_link filter. This filter allows you to change the final post link. Since you are showing categories in your permalink, so I am assuming that your permalink structure contains %category% in it. Below code will help you to get links the way you want. add_filter( 'post_link', 'wdm_change_category_permalink_structure', ...


1

If you have access to your database you can run the following query. I had run into a similar issue a while back. UPDATE wp_posts SET post_name = REPLACE(post_name, '---', '-') This will bulk replace every '---' with a single '-' in the post_name. It may also be wise to run the same command on the 'guid' field. Perhaps someone has a better solution, but ...



Only top voted, non community-wiki answers of a minimum length are eligible