[Resolved] How to perform this custom query?
I’m posting here because only moderators can post in ‘Advanced’ forum.
This is my custom query:
“Fetch the most recent post in category ‘Foo’ published by the latest 15 authors who have published in category ‘Foo'”.
In other words:
“Fetch the latest 15 posts in category ‘Foo’ but do not repeat authors, only one post per author”.
Currently I have a similar query: “Fetch latest 15 posts with category ‘Foo'”. I need the same query but restricting only one post per author.
This current query is using WP_Query().
The question is: How can I perform my custom query? Can I use WP_Query() or other function? Will I need $wpdb database class?
Thank you very much.
- The topic ‘[Resolved] How to perform this custom query?’ is closed to new replies.