New answers tagged

0 votes

How to Display Content from Search URLs on Permanent URLs in WordPress?

If you have registered a custom post type and have added a custom template for it to your theme, then you could do something like this. Add a helper function to functions.php that creates a custom ...
Antti Koskinen's user avatar
0 votes

Duplicate Content Issue with WordPress Permalink Structure and Primary Categories

function get_current_post_ID() { $postid = get_queried_object_id(); $post_url = get_permalink( $postid ); //wp_redirect( $post_url ); if( has_category('', $postid) && urldecode(...
robertparkerx's user avatar

Top 50 recent answers are included