Keep in mind that query_posts is best avoided as it has negative effects on the main loop. A better approach would be a new instance of WP_Query or changing the query arguments for the main loop.
To get the order you want, try adding the following to your args:
array( 'posts_per_page' => '-1', 'post_type' => 'coach-instructor' ,'post_status' => 'publish', 'orderby' => 'date', 'order' => 'ASC')
Related Posts:
- Stop WordPress Wrapping Images In A “P” Tag
- Access post from post id in URL
- WP_Query: Why is sticky post not first item in loop?
- How to mark articles as read?
- Ajax Load More Posts in Category Page
- Is there a way to disable the sticky posts feature?
- How to remove Nextpage tag inside posts text depending of utm_campaign
- using slug instead of ID in admin edit post url
- Can I load posts via Ajax?
- WooCommerce – Create Products Programatically [closed]
- Code to auto expire posts after 30 days
- Search not working with title and content
- Show the title of the latest post by author
- Developing a secure front end post editing form
- Filter posts by author and category simultaneously
- WordPress Delete hook with wp_delete_post function?
- How to use alternate post layout at key points in post loop?
- Add a custom option to a page in backend
- Changing publish date does not update post order
- Hide Post comments when displayed via WP_Query
- Show all post titles
- Posts are not showing up on particular category
- Can a page_id and a post_id be same?
- Differentiate between posts and pages in search results
- WordPress Theory Lesson – Image Columns within posts with alignment?
- Uppercase first sentence in every post
- If modified on same day, show only time
- How is a gallery associated with some post in database?
- Page Navigation for list of post
- Extracting post categories
- Limit popular posts by days
- Exclude post_meta from Rest API Endpoint
- impreza portfolio display/view blank page
- How to verify wp user password by sql query in wp? [closed]
- Get ALL post ID’s export list (Only id’s. Php or sql not important )
- Automatically add custom fields value to wordpress post
- How to use format post in a pertinent way
- Meta value does not save for scheduled posts
- How can I check if a var is equal a translated label?
- Loading post with Ajax
- How to create media library for each user?
- How to display links in specific page
- WordPress does not output “post” class when calling post_class() function
- When creating a post how do you select the format?
- How can I post exact same post but with a few things changed? (with some sort of Automation)
- Loop doesn’t show title of second post and posts thereafter
- Delete all drafts?
- Which PHP files should I edit for changing POSTS list and view pages?
- How to add add more properties to WP_Post object in search results loop
- How to get current post ID in functions.php
- How to show all posts by author on buddypress profile with navigation
- Change the default blog post post attribute template name from “default template” to something else
- Display post by click on the link
- WordPress 302 Redirect to Random Product/Post/Page
- How to call posts under a specific category on static front page?
- Image on rss feed on post
- Using AJAX and PHP to load next post object
- select post preview image from nextgen gallery
- WP_Query articles order by offset in collumns
- sort posts by getPostViews in functions.php
- Making a wordpress page print friendly
- Different post views for different category views
- “Home” Page now only displaying the single latest post
- Possible?! A contextually titled back link
- Post navigation using date
- Error while excluding a post from another loop (using its ID)
- How to select a category automatically based on a word in WordPress post title?
- Post feature image after post title for single post
- I have inserted a post’s content in homepage.php by the post-id. The font isn’t matching with the theme. How do I change font of this content?
- How to retrieve all meta data directly from the $post object? Such as $post->related_topics?
- How to use two query result together in one loop
- Odd hyphen added at end of blog post
- load post data into mysql
- filter posts based on menu_order
- How can change header text in post careate/edit form
- Difference between modified post and new post
- wp query custom orderby not custom field
- Update all images url imported from HTML pages
- numberposts not working
- Allowing Users to Delete Their Posts
- How to add a class to links inside posts text
- How do I allow my post to update it’s date every week
- How to change the publishing date of each posts?
- Include post on external custom site
- WP Load post with ajax and apply isotope
- Count how many posts a user has viewed
- Use a custom post URL that is outside the blog root directory
- No comments on static front page
- Display the current post author and his url in the post header
- How to change date_format in entry-info
- Only display price when value exist
- Output posts with same name as tags?
- The next_posts_link() works only with original $wp_query
- Latest news mini images
- How to make a posts page display only intros of posts?
- Admin moderates ALL comments (including post author)
- Show Title/Date/Excerpt of first post & only Title for rest in Query [duplicate]
- remove description in colum title post
- Get posts after calculating meta key
- Articles show some of text [duplicate]