Title: Filtering not working
Last modified: August 31, 2016

---

# Filtering not working

 *  [retroriff](https://wordpress.org/support/users/retroriff/)
 * (@retroriff)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/filtering-not-working-3/)
 * 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://wordpress.org/plugins/favorites/](https://wordpress.org/plugins/favorites/)

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

 * ![](https://ps.w.org/favorites/assets/icon-128x128.png?rev=1677726)
 * [Favorites](https://wordpress.org/plugins/favorites/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/favorites/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/favorites/)
 * [Active Topics](https://wordpress.org/support/plugin/favorites/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/favorites/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/favorites/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [retroriff](https://wordpress.org/support/users/retroriff/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/filtering-not-working-3/)
 * Status: not resolved