Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Another 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');
    

    Since 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 error

    Since 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 Yet
    Theme Author tseo.pro

    (@ibermega)

    Hi ?? The options menu if it works well. You should remove the navigation data your browser and try again.

    Theme Author tseo.pro

    (@ibermega)

    Hola 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

Viewing 5 replies - 1 through 5 (of 5 total)