New answers tagged redirect
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 ...
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 ...
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;
}
}...
Top 50 recent answers are included
Related Tags
redirect × 1839htaccess × 323
login × 159
wp-redirect × 153
permalinks × 151
multisite × 116
url-rewriting × 103
urls × 92
php × 80
404-error × 74
plugins × 72
wp-admin × 66
functions × 59
custom-post-types × 58
https × 58
pages × 48
rewrite-rules × 46
categories × 39
ssl × 39
customization × 38
users × 36
slug × 35
plugin-development × 33
posts × 33
domain × 33