please try this:
<?php if( $the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
Thank you
Related Posts:
- Filtering a WP_Query meta_query by numeric values isn’t working
- Query by 2 values of a repeater ACF field
- Query current and future events, ordered by begin date
- Display posts if a custom field value is equal to another custom field value
- Remove duplicated values from a loop
- Custom Post type and Custom Field WP_Query
- Display multiple custom post types and sort them chronological by one of their fields
- WP_Query order by custom field, then randomly order some of results
- Troubles with acf/save_post and WP_Query
- Query custom post type with ACF Date
- Stuck in Order by more then one
- Order Custom Post Type by Custom Field Value
- Query Custom Post Type Taxonomy term with multiple parameters
- Query based on custom fields start and end date
- Why is my WP Query not returning first result’s post meta?
- Group by custom field value (start and end times)
- Using WP meta query to show custom post types by a start and finish date
- Create if else for post types in WP_Query ‘post__in’ values
- Sort custom posts by date and then by taxonomy
- Using ACF values in nested WP queries for CPT with date values in the past
- Filter posts by their related field’s custom field
- Wrapping an unknown amount of posts inside separate HTML Containers during WP_Query loop
- Show specific posts with WP_Query using ACF Post object
- Linking posts together with Advanced Custom Fields “both ways”
- Custom Field as Custom Post type element class
- How to query posts by meta keys AND under specific category?
- Custom Post-type not returning the right child_of
- Display ACF object field data using Elementor Custom Query
- WordPress WP_Query Sort by 2 dates – custom fields
- WordPress custom post type -> query and sort by custom field with multiple values, then published date
- WordPress duplicating posts from single loop
- Use Custom Field to Display Post Loop
- Custom fields disappearing when a custom post type is assigned
- Isotope Filtering with Bootstrap Tabs – Custom Post Type Query Loop in each Tab (Have to click twice to filter)
- Custom post ui plugin & WP_Query – Polylang
- How to add a post slug to a url?
- Add custom ID to CPT posts only create not update
- Custom Taxonomy terms aren’t getting referenced or saved in Quick Edit or Bulk Edit, only on Single product page?
- WP_Query to select custom post type with Advanced Custom Fields (ACF) date
- How can I get the number of custom post type posts that have a specific attachment image set?
- Bulk Update Custom Fields for Custom Post Types
- How to use load more custom post type data normal or according to on click category tab In WP
- ACF Field on CPT Slug
- orderby rand is not working for a custom post types
- Problem querying Custom post type by custom fields
- Orderby CPT custom fields not working
- Custom taxonomy rewrite give pagination 404
- Cluster CPT posts to users based on ACF value from their profile on dashboard
- ACF Values Don’t Show After Import Unless I Edit/Update Post
- WP_Query inside foreach loop returning same value for all options when filtered using ajax
- Mixing 2 custom post types with posts output in specific pattern
- Custom post taxonomies as tax_query terms?
- creat filter with wp_query
- A method for ordering mixed dates in search result loop (theory only, no actual code)
- How to do WP_Query with two meta fields with orderby clause
- custom post type WYSIWG removes paragraphs when displayed
- Display featured image from one CPT within another CPT query
- Custom Post Type + ACF and performance [closed]
- Custom WP Query on custom meta and sort by multiple meta keys value
- Show only one post on custom post type archive
- Woocommerce search pagination not working
- Meta Query Not Returning Output Despite Having Matching Values
- How to order WP_Query by parent for hierarchical Custom Post Type?
- Including metaboxes from custom post types in global search — continued
- WordPress loop: Show only a Custom Post Type Taxononmy TERM
- How can I made custom taxonomies relationship?
- ACF From & To Date Validations
- Query Multiple Custom Posts by Custom Fields
- What’s the WP way to load remaining custom posts?
- Using advanced custom fields from one custom post type in another custom post type / using nested shortcodes
- Why is this query not working? (Standard posts + custom post type)
- How to render a custom post type template with custom fields using shortcode
- How do you paginate a query grouped by month?
- Exclude objects from WordPress API based from ACF field using rest_prepare_{$post_type}
- Custom taxonomies relationship
- Get Posts by multiple custom fields is not working
- CPT archive admin menu label
- Custom post type ‘articles’ ignores posts_per_page, reserved post_type?
- Rewrite Rule for showing Parent/Child Relationship between Two Hierarchical Custom Post Types
- Several post types on WP Query by tag and taxonomy
- WP Query with categories only shows one post and ignores the category
- Polylang non-default language ignores tags in WP_Query
- WordPress request fiter order by related post’s post_title
- Custom Widget WP_Query problem
- Custom query at top of archive search page, arguments are overridden
- WP_Query custom post type query not showing the exact post type
- How to display post list inside post
- Pagination issue on category.php using custom post type query
- Retrieve custom field from Contact Form 7 [closed]
- How to have this permalink structure: post_type/postname/custom_inner_page
- Problem: wp_query outputs all images on site
- Custom fields (wp_post_meta) vs Custom Table for large amount of data
- How to query WordPress posts bycustom field with a max characters’ length
- Sort entries by date mixing two post types
- Why is my category template ignoring post type?
- First custom field value (out of several) displayed twice after query
- wp_reset_postdata() and wp_reset_query() inside shortcode are not working to reset original page query
- The loop seems stuck to a single (now deleted) post
- Prioritize posts in query by meta keys?
- Lists custom taxonomy terms that has specific custom field value assigned to the term (not post)