• Hello,

    I’ve created a favorites page, where every user can check hiw own favorites posts, grouped by post_type. However filtering is not working to me. I a trying to filter by post_type but I get an empty array:

    $filters_pornostar = array(
    'post_type' => array(
    'videos'
    ),
    );
    $videos=get_user_favorites($filters=$filters_videos);
    print_r($videos);

    It works without the filter. Am I doing something wrong?

    Thanks

    https://www.ads-software.com/plugins/favorites/

  • The topic ‘Filtering not working’ is closed to new replies.