Skip to:
Content
Pages
Categories
Search
Top
Bottom

Types of Friends


  • akswer
    Participant

    @akswer

    Hi, I’m looking to (a) redirect profile links to author blog page, (b) designate friends as Inner Circle, Friend or Acquaintance, and (c) show All or Specific categories on the author blog page, depending on friend “type.”

    So far, I have PHP for hiding specific categories:

    function exclude_category( $query ) {
    if ( $query->is_author() && $query->is_main_query() ) {
    $query->set( 'cat', -42' );
    }
    }
    add_action( 'pre_get_posts', 'exclude_category' );

    Any suggestions for how to build this up, using further PHP snippets or plugins?

    Thank you to the community.

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

  • Varun Dubey
    Participant

    @vapvarun

    @akswer Friend type is not part of current features. It’s not like regular WordPress Post category. It will need to be extended and need to add one more parameter for friends and add a new option for the user to add specific friend inside their list Like Inner Circle, Friend or Acquaintance. You can request for a feature inside https://buddypress.trac.wordpress.org/report


    akswer
    Participant

    @akswer

    Thank you for the thoughtful reply. I submitted the feature request.

    In the meantime, do you see a way to use groups to accomplish the same thing? Seems overly complex to me, but maybe I’m overthinking it.

    For example, three groups could be auto created for each user upon registration, titled Inner Circle, Friend and Acquaintance. And then “friends” could be auto added to one of the groups, by the user/group admin. Unfortunately this sounds like a mess, plus creates new issues for the OTHER users to do the same thing on their side.


    Varun Dubey
    Participant

    @vapvarun

    each group is unique and if you are willing to create the same name of groups for each user, obviously it will create a mess. Other members will also have groups with the same name and group directory will be filled with smiliar groups.

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