What is “sermon date”, is it the custom field? If so, your meta_key is the name of your custom field used for that date. If not, how are you getting the sermon date?
Might be something like this:
$args = array(
'post_type' => 'sermons',
'meta_key' => 'sermon_date',
'orderby' => 'meta_value',
'meta_type' => 'DATE'
);
$query = new WP_Query( $args );
Related Posts:
- Display all posts starting with given letter?
- wp_pagenavi() with custom wp_query()?
- Custom Post Type Pagination Not Working On Archive Page
- Pagination go to first page if i’m on last post
- Grossly inefficient wordpress loops!
- Order custom posts by taxonomy?
- Custom post type loops with different page templates
- Should unaltered default loop/query return a list of custom posts belonging to a custom taxonomy?
- 404 error PageNavi custom type taxonomy | wordpress
- exclude custom post type by meta key in wp_query
- Query for posts in 2 taxonomies
- IF statement in a do_shortcode
- Get the title of custom post type in another loop
- How to list custom post types?
- How to dynamically build a multiple taxonomy query loop within a post type’s single loop?
- Unable to get post content from custom post type loop
- How to check if “is single” page
- Using pre_get_posts to filter one loop in a multiloop archive
- Pass the_post() as a parameter
- get_template_part and template file names
- Creating select dropdown with parent-level custom post types
- Show one item per category of a custom post type
- CPT + CMB2: data not displaying for only first post in loop
- Loop custom taxonomy to get lists of cutom post types?
- Multiple Loops On Custom Post Type Template?
- Show a Category X’s custom post type on Category X archive page?
- Sort by alphabetical order archive.php page
- Custom Tag Description unable to display just below and outside of the Loop
- Displaying Custom Posts on a Page
- Custom Post Type within the Loop on Homepage (Page Template)
- Custom Post Type Category Link
- Custom Post type category pages template and loop
- Three Most Recent Posts, One Per Term
- Custom Post Loop pulling all custom posts, not just one
- Wrapping x posts in html without leaving empty html
- Sort posts in loop by the WooCommerce Membership of the author
- Loop increase number
- Custom post type showing same Post on all Pages
- Move Genesis Single Page/Single Post Title
- get parent content inside child posts
- Post loop count is not in order
- hide specific div on single.php [closed]
- Looping Through Categories of a CPT
- How do you output an unknown number of images in a custom post type with desired markup?
- Get data from PHP to JavaScript to set position of each post on front page
- assign different templates to custom post type with homepage loop
- Assign a template to a custom post type when displayed by the main loop on the home page
- Custom Post Type and Taxonomy Loop Output Is Wrong
- The loop does not show users
- Displaying information from custom field on custom post type
- Display only a single CPT
- Control Loop Within Loop
- How do I enforce a specific custom post type on the loop
- CPT archive page – show one post from each taxonomy term
- How do i display post from a taxonomy term?
- Custom loop request based on custom field
- How do I list a custom field and custom taxonomies for each result in a loop?
- If/Else child list for Custom Post Type single template within loop?
- Show the categories the current post has
- Insert a Custom Post type into my Loop
- Custom Post Types Not Showing Up In query_posts Result
- Do I need a loop to display an object that attached to posts?
- Pagination not working in custom post type. Help
- Show custom post type event if current day using ACF
- How to create an IF statement in the Main Loop for Custom Post Types
- Custom meta fields not showing up in WP_Response Object via custom endpoint
- How to output and alert message when updating a post
- Loop (for search results) returning right posts, but wrong post type
- Wrapping an unknown amount of posts inside separate HTML Containers during WP_Query loop
- WordPress trying to query two custom types to get child from the parent
- Display title of all custom posts from same taxonomy term on a custom post template
- sorting in wp query based on custom field value
- get_permalink() of page the enclosing page not posts
- Custom post type loop without children
- How to display user-defined / custom post in wordpress?
- WordPress query in which condition uses custom field
- WordPress loop add heading before first of type
- Error in WP Query. If variable is empty it is displaying previous post value
- Looping through custom taxonomy in one template
- get_post_meta for Custom Post Type ( CPT )
- How to keep a CPT stick to specific position?
- Is it possible to add query parameters on the archive page?
- Pagination in custom post type page template
- Custom post type archive pagination with HTML5Blank theme?
- WordPress loop for multiple custom post types
- Custom Post Type Order Index Loop
- WordPress nested loop not working
- Order by custom field attribute
- Display Custom Taxonomy of custom post type
- Pagination not working with custom loop
- Fallback if statement based on the number filtered from it
- Create custom post order (with custom post type meta)
- Pagination not working with custom loop
- next_posts_link returns same content of 1st page
- Custom Post Types and 404 Pages
- How to loop through a custom post type using a shortcode and output each element in the loop using shortcodes
- Allowing null vairiable
- Where paramaters of a custom function are coming from inside the loop?
- Create a WordPress loop that shows posts from a custom post type + filters the posts by taxonomies while hiding empty taxonomies
- Add Custom Taxonomy Terms as CSS Classes for CPT Posts in an Elementor Loop Item Template