• Resolved tonz003

    (@tonz003)


    I have made a custom category template file which is paginated.
    My problem is that all of the paginated (sub)pages are having the same meta data (not good for SEO).

    I am using the latest Yoast SEO Plugin with basic settings.

    I would like to ask for some help with it because I can not figure it out alone.
    Any help appreciated a lot!!!

    Here is the custom category php file:

    https://jsfiddle.net/8Lxgz0gp/

Viewing 1 replies (of 1 total)
  • Thread Starter tonz003

    (@tonz003)

    if ( ! function_exists( 't5_add_page_number' ) )
    {
        function t5_add_page_number( $s )
        {
            global $page;
            $paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1;
            ! empty ( $page ) && 1 < $page && $paged = $page;
    
            $paged > 1 && $s .= ' | ' . sprintf( __( 'Page: %s' ), $paged );
    
            return $s;
        }
    
        add_filter( 'wp_title', 't5_add_page_number', 100, 1 );
        add_filter( 'wpseo_metadesc', 't5_add_page_number', 100, 1 );
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Custom paginated catergory same metadata’ is closed to new replies.