Skip to:
Content
Pages
Categories
Search
Top
Bottom

Third time and no one responds: do not index buddypress links?


  • danielafer
    Participant

    @danielafer

    It is the third time that I ask and I don’t get any answer to my question:
    How can I avoid indexing the links generated by the plugin, for example profiles, activities, groups, etc.

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

  • Varun Dubey
    Participant

    @vapvarun

    @danielafer use private community plugin or BP lock , it will help to keep your community private for logged in users.
    If you do not want the private community approaches you can also use no-index.

    function no_index_for_buddypress() {
        if ( is_buddyPress() ) {
            echo '<meta name="robots" content="noindex, nofollow">';
        } else {
        }
    }
    add_action( 'wp_head', 'no_index_for_buddypress' );

    danielafer
    Participant

    @danielafer

    Hi, thanks for replying. I’m not as interested as having content or a private community. I am interested in not indexing all links generated by buddypress, such as mypage / members / juan
    I consider that these links do not generate any value for my site.
    With that code can I achieve this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar