[Resolved] Query for custom post typesin "postsbyuser" – UserPro Forums https://forum.userproplugin.com/forums/topic/query-for-custom-post-typesin-postsbyuser/feed/ Tue, 30 Apr 2024 14:54:47 +0000 https://bbpress.org/?v=2.6.2 en-US https://forum.userproplugin.com/forums/topic/query-for-custom-post-typesin-postsbyuser/#post-16261 <![CDATA[[Resolved] Query for custom post typesin "postsbyuser"]]> https://forum.userproplugin.com/forums/topic/query-for-custom-post-typesin-postsbyuser/#post-16261 Mon, 06 Jan 2014 12:26:05 +0000 Jens Jarl Broe Hi again guys 🙂

I’m trying to query custom post types in [userpro template=postsbyuser].

In postbyuser.php I see

<?php if ($post_query->have_posts() ) { ?>

but I’m not sure where the query is made?

Thanks!

//Jens

]]>
https://forum.userproplugin.com/forums/topic/query-for-custom-post-typesin-postsbyuser/#post-16266 <![CDATA[Reply To: [Resolved] Query for custom post typesin "postsbyuser"]]> https://forum.userproplugin.com/forums/topic/query-for-custom-post-typesin-postsbyuser/#post-16266 Mon, 06 Jan 2014 13:07:42 +0000 Jens Jarl Broe Found the answer myself in the documentation.

Just added postsbyuser_types=any 🙂

]]>
https://forum.userproplugin.com/forums/topic/query-for-custom-post-typesin-postsbyuser/#post-16600 <![CDATA[Reply To: [Resolved] Query for custom post typesin "postsbyuser"]]> https://forum.userproplugin.com/forums/topic/query-for-custom-post-typesin-postsbyuser/#post-16600 Wed, 08 Jan 2014 07:41:57 +0000 admin postsbyuser_types=any
postsbyuser_types=product
postsbyuser_types=post,product
postsbyuser_types=portfolio,custom_post

All are valid samples 🙂

Thanks!

]]>