WordPress.org

Ready to get started?Download WordPress

Forums

All in One SEO Pack
[resolved] Bbpress Forums and Topics Archive no title no description (5 posts)

  1. FreeWPress
    Member
    Posted 9 months ago #

    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/

  2. Peter Baylies
    Member
    Plugin Author

    Posted 9 months ago #

    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;
    }
  3. FreeWPress
    Member
    Posted 9 months ago #

    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... :(

  4. FreeWPress
    Member
    Posted 9 months ago #

    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 :)

  5. Peter Baylies
    Member
    Plugin Author

    Posted 9 months ago #

    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.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.