Erik Molenaar (@erikmolenaar)

Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

  • Erik Molenaar
    Participant

    @erikmolenaar

    Hallo Manuel,

    Just to let you know, I ended up with removing the functionality of a public profile page for my bbpress users by:

    1. Removing the author links (so Google won’t find them anymore):

    
    /*-----------------------------------------------------------------------------------*/
    /* Remove all author links from bbpress pages
    /*-----------------------------------------------------------------------------------*/
    
    add_filter( 'bbp_get_author_link', 'remove_author_links', 10, 2);
    add_filter( 'bbp_get_reply_author_link', 'remove_author_links', 10, 2);
    add_filter( 'bbp_get_topic_author_link', 'remove_author_links', 10, 2);
    
    function remove_author_links($author_link, $args) {
    $author_link = preg_replace(array('{<a[^>]*>}','{}'), array(" "), $author_link);
    return $author_link;
    }

    2. Placing a noindex meta tag in my bbpress user templates (so the already indexed profile links will disappear from Google):

    <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW" />

    Thanks again for your prompt replies and I hope this is of use to you 🙂


    Erik Molenaar
    Participant

    @erikmolenaar

    Dear Manuel

    Thanks for your quick response 🙂

    True, your last mentioned URL has the same problem I am experiencing: http://de.movemeta.org/benutzer/chris/

    But, the first URL you mentioned: http://de.movemeta.org/nutzer/manuel/ does have a nice page title and all the correct Yoast SEO meta data (including a noindex).

    Or did you try to fix this by making a seperate non-BBpress related page, which is supported by Yoast SEO?

    All the best
    Erik


    Erik Molenaar
    Participant

    @erikmolenaar

    Dear let-me-see.

    I see you managed to get the Yoast SEO plugin to insert a page title and a noindex in your bbpress user profile URLs (/users/, /users/<username>/topics and users/<username>/replies).

    Would you be so kind to tell me how you manage to do this?

    I am having the same troubles, as the profile pages have a strange page title and I can’t ‘see’ these profile taxonomies in the Yoast SEO plugin to set a manual page title and/or set a noindex on these URLs.

    I hope you can help me out! Looking forward to your reply. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)