WordPress.org

Support

Support » Plugins and Hacks » All in One SEO Pack » [Resolved] Bbpress Forums and Topics Archive no title no description

[Resolved] Bbpress Forums and Topics Archive no title no description

  • Hi, i use wordpress 3.7.1 and Bbpress 2.4.1.

    I have a little problem whit forums and topics title.. It sho only:
    <title>Forums</title>
    <title>Topics</title>

    No description for this two pages… I have removed and install for new all in one seo, but nothing changed. In general settings i can’t find anythings to change this.

    I remember before update wordpress i have Forums | Site name… But not sure… This is only a my issue? I have tested today other seo plugin and it works whit forums and topics archive.. but i want this plugin for me.. not others…

    I hope you have a solutions… šŸ™‚

    http://wordpress.org/plugins/all-in-one-seo-pack/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Peter Baylies

    @pbaylies

    FreeWPress,

    I’ve added a snippet of code below that should fix this issue for you; you may add it to the functions.php of your theme or to a plugin. Also, update the plugin if you haven’t yet, the latest version is 2.0.4.1. We will also be working on improving support for custom taxonomies and custom post type archive pages in the future, and I’ll see about fixing this issue in particular in the next version of the plugin.

    add_filter( 'aioseop_title', 'freewpress_fix_titles' );
    function freewpress_fix_titles( $title ) {
        if ( is_post_type_archive() ) {
            global $aiosp;
            $title = $aiosp->get_original_title() . " | " . get_bloginfo( "name" );
        }
        return $title;
    }

    Dear Peter..

    Your support is nĀ°1 problems was resolved, it work fine…

    Yes i have latest version of your good plugin… One questions.. for future version i must to remove this fix from my function.php?

    If is possible add a form for write description, because no description exist in this two pages…

    I see also in source code of my page <link rel=’next’ href=’http://www.mysite.com/forums/page/2/’ /> but i do not have page 2…. is single page

    For topics have a page numer 2 and 3 but do not show page 2.. page 3.. in title page… this is a problem for duplicate title… šŸ™

    FreeWPress

    @freewpress

    Hi, i have made this to solve pagination issue:

    add_filter( 'aioseop_title', 'freewpress_fix_titles' );
    function freewpress_fix_titles( $title ) {
        if ( is_post_type_archive() ) {
    
            if( is_paged() ) {
      $paged = (get_query_var('paged'));
      $paginate = " - pagina ".$paged;
    }
            global $aiosp;
            $title = $aiosp->get_original_title() . " | " . get_bloginfo( "name" ) . $paginate;
        }
        return $title;
    }

    It work fine for paginate archive…

    Thanks šŸ™‚

    Plugin Contributor Peter Baylies

    @pbaylies

    FreeWPress,

    Nice fix! You should be able to remove your fix for the next version, but it doesn’t harm anything if you don’t. For adding descriptions, you can filter aioseop_description – note that custom archive pages typically wouldn’t have descriptions, as there isn’t really a way to set them otherwise.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Bbpress Forums and Topics Archive no title no description’ is closed to new replies.
Skip to toolbar