GeoDirectory SupportHow to Query Posts Per Category – GeoDirectory Support https://wpgeodirectory.com/support/topic/how-to-query-posts-per-category/feed Mon, 13 Apr 2026 16:55:34 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://wpgeodirectory.com/support/topic/how-to-query-posts-per-category/#post-37390 <![CDATA[How to Query Posts Per Category]]> https://wpgeodirectory.com/support/topic/how-to-query-posts-per-category/#post-37390 Fri, 17 Apr 2015 09:38:26 +0000 stargeoteam Hi ,

I’m trying to use query_posts function. I’m trying to filter by category. I simply just want to be able to filter and get the posts per category per geodirectory post type and use it in the loop.

A. Input Category ID.
B. Input Geodirectory Post type.

$args = (‘post_type=gd_place&cat=11’);

or

$args = array( ‘post_type’ => ‘gd_place’, ‘category’ => 11
);

query_posts($args);

1. If I include category it doesn’t work.
2. If I exclude category it will work.
3. Is there a way to properly do this for Geo Directory post types?

Thanks

]]>
https://wpgeodirectory.com/support/topic/how-to-query-posts-per-category/#post-37392 <![CDATA[Reply To: How to Query Posts Per Category]]> https://wpgeodirectory.com/support/topic/how-to-query-posts-per-category/#post-37392 Fri, 17 Apr 2015 10:19:36 +0000 stargeoteam 1. I used tax_query.

Resolved.

]]>
https://wpgeodirectory.com/support/topic/how-to-query-posts-per-category/#post-37426 <![CDATA[Reply To: How to Query Posts Per Category]]> https://wpgeodirectory.com/support/topic/how-to-query-posts-per-category/#post-37426 Fri, 17 Apr 2015 19:16:44 +0000 Paolo thanks for sharing! 🙂

]]>