Skip to:
Content
Pages
Categories
Search
Top
Bottom

Filtering Activity Feed by Custom Category

Viewing 2 replies - 1 through 2 (of 2 total)
  • @shanebp

    Moderator

    @btees

    Participant

    Thanks for that @shanebp

    I’ve been trying to use something like the “Builds an Activity Meta Query to retrieve the favorited activities” part of that document combined with the feed merging solution offered in this thread:

    how to combine activity tabs to one

    But I can’t seem to wrap my head around it.

    I’ve been trying to add the meta_query to my $retval like this:

    array(  
            'meta_query' => array(
                array('meta_key' => 'bpcat',
    			'meta_key' => $industry))
    			
        ),

    Where $industry is a variable associated with the viewers account like:
    $industry = xprofile_get_field_data( 2, $user_id, false );

    But I’ve also run it with a fixed value for testing ( 'meta_key' => $industry ), no joy either

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