tseo.pro
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Self-referencing canonicalAnother workaround to not completely remove pagination and only work on archive.php and category.php but not on the rest of wordpress:
function disable_pagination_on_other_pages( $query ) { if ( ! is_admin() && ( is_archive() || is_category() ) && $query->is_main_query() ) { return; } if ( $query->is_main_query() ) { $query->set( 'no_found_rows', true ); } } add_action('pre_get_posts','disable_pagination_on_other_pages');
Forum: Developing with WordPress
In reply to: Self-referencing canonicalSince version 6.0.3 wordpress has pagination issue with all SEO plugins or all plugins are wrong or wordpress is the cause. This issue prevents some plugins from being reconfigured and also causes a very significant server overhead when /page/v2 appears on the front page. I have solved it on many websites by inserting this in functions.php:
function temporarily_disable_pagination( $query ) { if ( $query->is_main_query() && !is_admin() ) { $query->set( 'nopaging', true ); } } add_action('pre_get_posts','temporarily_disable_pagination');
until someone fixes the bug in wordpress or seo plugins.
Note. When inserting this function if in permalinks you have for example: /%category%/%postname%/ the function automatically changes it to /%postname%/ so you will have to enter quickly and put it back correctly: /%category% / %postname%/ to avoid SEO problems with search engine indexing.
- This reply was modified 1 year, 7 months ago by tseo.pro.
Forum: Fixing WordPress
In reply to: fatal errorSince version 6.0.3 wordpress has pagination issue with all SEO plugins or all plugins are wrong or wordpress is the cause. This issue prevents some plugins from being reconfigured and also causes a very significant server overhead when /page/v2 appears on the front page. I have solved it on many websites by inserting this in functions.php:
function disable_pagination temporarily ($query) {
if ( $query->is_query_main() && !is_admin() ) {
$query->set(‘nopagination’, true);
}
}
add_action(‘pre_get_posts’, ‘temporal_disable_pagination’);until someone fixes the bug in wordpress or seo plugins.
Note. When inserting this function if in permalinks you have for example: /%category%/%postname%/ the function automatically changes it to /%postname%/ so you will have to enter quickly and put it back correctly: /%category% / %postname%/ to avoid SEO problems with search engine indexing.
Forum: Reviews
In reply to: [Athenea] Not There YetHi ?? The options menu if it works well. You should remove the navigation data your browser and try again.
Forum: Themes and Templates
In reply to: [Athenea] No graba páginas el temaHola universoyoga.
?A qué te refieres con que no las graba, exactamente?
Las plantillas solo muestran la información de tu wordpress. No ejecutan inserciones en la base de datos.
?Puedes poner aqui una captura de pantalla para ver el problema?
Un saludo