Title: triggeru571's Replies | WordPress.org

---

# triggeru571

  [  ](https://wordpress.org/support/users/triggeru571/)

 *   [Profile](https://wordpress.org/support/users/triggeru571/)
 *   [Topics Started](https://wordpress.org/support/users/triggeru571/topics/)
 *   [Replies Created](https://wordpress.org/support/users/triggeru571/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/triggeru571/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/triggeru571/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/triggeru571/engagements/)
 *   [Favorites](https://wordpress.org/support/users/triggeru571/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Favorite Posts] Custom post type](https://wordpress.org/support/topic/custom-post-type-24/)
 *  [triggeru571](https://wordpress.org/support/users/triggeru571/)
 * (@triggeru571)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/custom-post-type-24/page/2/#post-3388928)
 * Hi Flick, great stuff. Could you please tell me, does your code above go into
   functions.php or does it go in one of the plugins files?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Favorite Posts] Favorite in custom post type not working](https://wordpress.org/support/topic/favorite-in-custom-post-type-not-working/)
 *  [triggeru571](https://wordpress.org/support/users/triggeru571/)
 * (@triggeru571)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/favorite-in-custom-post-type-not-working/#post-3851065)
 * Hey, the solution above
    `query_posts(array('post__in' => $favorite_post_ids,'
   post_type' => 'any', 'posts_per_page'=> $post_per_page, 'orderby' => 'post__in','
   paged' => $page));` worked well when I replaced post_trype any with the actual
   post type. The thing for me is that I have 4 differenet custom post types. Any
   idea how I can get all 4 working with this? The slugs are:
 * directory, restaurant-cafe, events, travel-tip-review
 * Thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Widget Logic] Use custom field data with widget logic?](https://wordpress.org/support/topic/use-custom-field-data-with-widget-logic/)
 *  Thread Starter [triggeru571](https://wordpress.org/support/users/triggeru571/)
 * (@triggeru571)
 * [13 years ago](https://wordpress.org/support/topic/use-custom-field-data-with-widget-logic/#post-3674857)
 * Hey Alan,
 * First of all, thanks so much for taking the time to answer. You have a great 
   plugin here.
 * `global $post; return is_single() && get_post_meta($post->ID, 'featured-ads',
   true)=='featured';`
 * still did not work though. The widget simply does not show up across the site.
   Do you have paid support maybe I can give you access to the admin and you can
   check out what the issue is if you have time? I tried looking for your own site
   to hire you but cold not locate it 🙂
 * Cheers
 * M

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