• I have noticed that the post archive title is not being rewritten and there is actually no setting in AIOSEOP to set what it should be anyway.

    I am using WooCommerce, which may or may not be part of the problem, but I can’t disable it to test as it is providing the custom post type. The page that I noticed it on is the shop front page, which is basically just an archive page of the “products” post type.

    I tried changing the Use Original Title option, but it makes no difference what it’s set to.

    Cheers

    https://www.ads-software.com/plugins/all-in-one-seo-pack/

Viewing 13 replies - 16 through 28 (of 28 total)
  • been itching my head and tried wp_title filter but didn’t work. sigh ! finally got it, needed to use the aioseop_title filter. Thanks ??

    Will this hack work for changing the paged format for custom post type archives?

    I just want our custom review post archive pages to follow the same format as other paged items such as categories. So something like this – Part %page%

    What would I need to change in the hack to accomplish this?

    Thanks,

    @EntBudha you can use this code to get that done, make changes to the code based on your needs

    add_filter('aioseop_title', 'change_gadget_title', 10, 2);
    function change_gadget_title( $title ){
    
            global $paged, $page;
    
              $site_name = get_bloginfo('name');
              $sep = '|';
    
        if( is_post_type_archive('CUSTOM_POST_TYPE') ) {
    
             $title =  $title.' '. $sep .' '. $site_name;
    
             if ( $paged >= 2 || $page >= 2 ) {
    		$title .=   sprintf( __( ' - Part %s' ), max( $paged, $page ) );
             }
        }
    
        return $title;
    
    }

    Thanks jery61007! I’ll give it a try and report back.

    wpsmort,

    Any update on when this functionality will be baked into the actual plugin? I would much rather have it be part of the plugin than have to hack up the functions.php file, but if it’s going to be another few weeks or months I’ll have to use the hack so GWT doesn’t keep flagging duplicate titles.

    Thanks

    Plugin Support Steve M

    (@wpsmort)

    Hi EntBuddha,

    We hope to complete the testing this week and release next week.

    Can I ask why it’s taken you so long to add this to the actual plug-in?

    BTW – I couldn’t get Peter’s hook to work exactly the way he shared it. Just changed it slightly and got it working:

    add_filter( 'aioseop_title', 'mf_rewrite_custom_titles' );
    
    function mf_rewrite_custom_titles( $title ) {
        if ( is_post_type_archive() ) {
            $post_type = get_post_type_object( get_post_type() );
            $blog_title = get_bloginfo();
            $title = $post_type->labels->name . " | " . $blog_title;
        }
        return $title;
    }

    Hope that helps.

    wpsmort I installed the latest version, but don’t see an option for this functionality anywhere. Our custom post type archive pages still use the same title for each page which is giving us duplicate posts warning in GWT.

    https://www.entertainmentbuddha.com/reviews/

    On each new archive page I want the title to get rewritten like it does for all other archives using this setting – Part %page%

    Ideally it should behave like this second page of a standard category archive.

    https://www.entertainmentbuddha.com/category/gaming-news/page/2/

    I would rather not hack up the functions.php file to do so, because I thought you said this function would be baked into the latest release. Please advise on what I may be missing, or if this functionality didn’t make it into the latest release.

    Matt

    Plugin Support Steve M

    (@wpsmort)

    Hi Matt,

    We’ve not released any support for custom post type archives yet, its still in testing.

    wpsmort I see that the latest update still doesn’t address my issue. will this ever be implemented, or do I have to use one of the user generated hacks above?

    Plugin Support Steve M

    (@wpsmort)

    Hi Matt,

    This is scheduled for release in All in One SEO Pack Pro version 2.3.3 which will be released in August.

    wpsmort, thanks for the update!

Viewing 13 replies - 16 through 28 (of 28 total)
  • The topic ‘Archive title not being rewritten’ is closed to new replies.