Tag Info

New answers tagged

0

Try this : function change_post_type_link( $link, $post = 0 ){ if ( $post->post_type == 'questions' ){ return home_url( 'questions/'. $post->post_name .'/'. $post->ID ); } else { return $link; } } add_action( 'init', 'change_rewrites_init' ); function change_rewrites_init(){ add_rewrite_rule( ...


0

I made modification of rules, now it is working fine. #For post page URLs RewriteRule ^(.*)-some-category-suffix(.*)-some-category-suffix(.*).jpg.html(.*)$ /category-url/$1$2$3.html [L,R=301] #For post add-on page URLs RewriteRule ^(.*)full-size/(.*)-some-category-suffix(.*)-some-category-suffix(.*).jpg-(.*)(.*).html$ /category-url/$1$2$3$4.html?-$5$6 ...


0

You have any News page? Check your page list. I think that there have a page which is taking the same category slug.



Top 50 recent answers are included