New answers tagged

0 votes

Custom Post Type canonical link / pagination redirecting to root

Changing the method may help. There needs to be a function. <?php function wpdocs_get_paginated_links( $query ) { // When we're on page 1, 'paged' is 0, but we're counting from 1, // so we're ...
user avatar
  • 31
0 votes

Best Way to Redirect Category to Page and Hide Category

Another possible way is to have a custom template in your Child-Theme. According to the wordpress template hierarchy the file must be named category-news-article.php. In this file you could do a ...
user avatar
0 votes

How Do I Redirect Wordpress Pages but not posts?

You can either add the following code to your functions.php or create a custom plugin with the code. function my_custom_page_redirect() { if (is_page()) { wp_redirect(home_url()); exit; } }...
user avatar
  • 271

Top 50 recent answers are included