Reply To: Filtering Activity Feed by Custom Category
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:
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