This should be doable in the get_children()
query, try the following:
Take a look at the codex entry of get_children()
. You will see that get_children()
uses the same args
as get_posts()
. If you than look at get_posts()
you will see that you have 2 order arguments to work with:
'orderby' => 'date',
'order' => 'DESC',
For all possible orderby
and order
parameters, you can take a look at WP_Query codex.
Related Posts:
- get_children() Not Working with orderby Parameter
- Need help with category listing!
- List direct children of page
- ZIP up all images displayed in a [gallery] and offer as download link
- How to use “Add link” pop up for a WordPress widget
- How to validate XML-RPC post creation and cancel when needed?
- the_author() returns empty string
- Custom permalink structure only for default posts
- List latest posts in WP-Admin
- Email admin when post pending?
- How to control which category will be picked for the slug of a post?
- How to hide the Text Area in the Post Edit screen
- WordPress Number of Posts Not Changing With posts_per_page
- Adding a Nav menu to post admin
- Comments enabled, but disabled at the same time
- Mass Update lines of code for all posts
- set role specific screen options in post summary page
- How to get a nofication when post submitted
- How to link up “read more” on excerpts hack from WP Recipies
- Any idea why wp_insert_post is succeeding but not returning?
- get custom image size
- Does an article (post) id ever change?
- Check is_single() outside loop
- Get Posts via Taxonomy Term Name with Space
- Change default Posts page
- Create post for every user?
- Auto “expire” all of an authors posts on spcific date
- How to pass Post_ID variable from theme’s Single.php to custom Plugin using AJAX
- Yearly archive page for future year
- How blog page in WordPress works : blog page retrieve first post ID
- Restrict users post for himself
- Driving a random quote like functionality with database
- Custom WordPress Theme: Publish Date and Display Date for posts right beside each other
- current post with current author
- Addition Text to Post Titles (Custom Post Types) in RSS
- Why aren’t my posts/pages showing up in my WordPress Theme?
- Assign category to new post via URL
- Blog post per page setting conflicting with custom WP_Query?
- Show certain posts in a LIST format that members have been granted access to
- WordPress Rest API Create Post
- WordPress custom Query for Posts in Category display posts multiple times
- performance of post_exists
- Categories list into registration form
- WordPress Local And Live Site
- How do I locate the exact location where this error is occurring 404 page not found
- How would one change the default url structure of attachments?
- Use two different post_per_page limits with infinite scroll
- How do I manage my users post before publish?
- Posts vs Pages and categories
- WP move posts to different path
- getting “Object of class WP_Post could not be converted to string” – when it is a string
- Only show featured image on first page of paginated posts
- Exclude some categories from listing on the current post
- how to set social icons to product / post template (Auros theme)? [closed]
- restrict incrementation of post vies count when refreshing the page
- how to give multiple post thumbnails to a post
- Change the color of the Password Protected Post titles
- get_children returns older images
- How to display post title inside thumbnail?
- Exclude post category in a blog page
- Banner appearing on Pages but not Posts; call it conditional confusion
- how do I get the title in the post [closed]
- Publish a Silent Post without updating Feed
- How to make posts being uncategorized
- How to display a single(current) post from a category
- Delete post from admin but not from database
- Open a wordpress single post in a lightbox without the header and footer
- how to create a sub section in posts
- Filter out posts based on a certain post_meta on the WordPress REST API
- Edit post & page option does not display on latest wordpress
- Separate top level categories on archive-product.php by meta
- How to add text before post_excerpt in Gutenberg
- Pinterest button shows image options from different posts
- allow user to create a draft post but not publish wordpress
- Ignore posts content in the posts queries for internal linking
- Comments are in database, don’t show up in WordPress backend or frontend
- Many buttons not functioning in WordPress dashboard (as admin)
- Show code only on WooCommerce Pages
- WP_Query that targets all categories
- Fill the exclude array() in get_posts()
- Prevent WordPress from putting around specific element
- How to put the WordPress blog into theme
- How to correctly escape data
- How to fetch posts that are stored in the different table than the default table (wp_posts)?
- Sort Events by Venue Title – Sort Post set by related post ids
- Get posts by category or author
- How to make post button to a random post
- I moved my site to another server, wp admin works so does the front page, but posts don’t work
- How can I have the posts from one word press blog show on the presentation page of another word press site
- How to pass multiple checkbox values to wordpress query?
- How to create three columns from selected posts
- Display the popular tags by default in the backend post edit page (without having to click on the link that displays them) [closed]
- Getting 404 when using rewrite rule for posts
- Posts and pages not getting published
- How to create a post based on data in a table?
- how to show all post with its contents
- Last updated post in wordpress homepage first position
- How to make category for word post_content
- How does WordPress add the comments and comment form to posts
- how to change background color of my all post