• Resolved arakelian

    (@arakelian)


    Is it possible to add Page-1, Page-2 … to meta description in All in One Seo ? I mean for paginated pages like Blog, or Category, or tag. Like it does with titles ?
    The reason is to stop having duplicate meta description pages in Search Console.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Michael Torbert

    (@hallsofmontezuma)

    WordPress Virtuoso

    You can use our API filter hook aioseop_description to do this if you’re comfortable writing some code.

    I’ve also opened a Github issue here: https://github.com/semperfiwebdesign/all-in-one-seo-pack/issues/1961

    Thread Starter arakelian

    (@arakelian)

    I don`t write code .. but i would definitely add some if i knew what and where. Is there some documentation about it?

    EDIT
    Ok..i have seen the link. So, now what? Wait for the developers to add this feature to the plugin ? I can do that if it is not too log . I am not familiar with how github projects work. sorry.

    • This reply was modified 6 years, 1 month ago by arakelian.
    • This reply was modified 6 years, 1 month ago by arakelian.
    • This reply was modified 6 years, 1 month ago by arakelian.

    I’m not sure this is the best option, but it works for me. Place this in functions.php

    for Title

    function my_aioseo_paged_title($title) {
    global $cpage;
    if ( $cpage >= 1 && is_singular() ) {
    $title = $title . ' – Comment page ' . $cpage;
    return $title;
    } else {
    return $title;
    }
    }
    add_filter( 'aioseop_title_single', 'my_aioseo_paged_title' );
    add_filter( 'aioseop_title_page', 'my_aioseo_paged_title' );
    

    for Description

    function my_aioseo_paged_desc($description) {
    global $cpage;
    if ( $cpage >= 1 && is_singular() ) {
    $description = $description . ' – Comment page ' . $cpage;
    return $description;
    } else {
    return $description;
    }
    }
    add_filter( 'aioseop_description_full', 'my_aioseo_paged_desc' );
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Meta description pagination’ is closed to new replies.