Query posts GROUP BY post_parent
-
Hi, I am trying to get recently modified posts grouped by post_parent ID..
$arg = array(
‘post_type’ => ‘episode’,
‘post_status’ => ‘publish’,
‘order’ => ‘DESC’,
‘orderby’ => ‘post_modified’,
‘groupby’ => ‘post_parent’, // Is this possible
‘paged’ => $paged
);I want to only get 1 most recently updated post from each parent post, I tried so many things, but doesn’t work. Any help would be appreciated. thanks
-
We do not offer the ability to modify source code here on WordPress.com, so the site you are referring to appears to be a self-hosted WordPress (also called “.org”) site hosted on an outside web hosting company Web Hosting, and not a site hosted on our WordPress.com service.
To clarify, we are not the only providers of WordPress sites, and other hosting companies also happen to offer WordPress sites, but they use a different version of the platform than what we use here. Because of this we are not able to help with your issue as it lies outside of our system. See http://support.wordpress.com/com-vs-org/ for more info.
You can find advanced support for your self-hosted WordPress site here instead: https://wordpress.org/support/forum/wp-advanced/
Hope that points you in the right direction!
- The topic ‘Query posts GROUP BY post_parent’ is closed to new replies.