You start a while loop using the colon syntax, but never end the while loop with endwhile properly. Your template is thus incomplete, and this is what is giving you the syntax error.
Related Posts:
- Query all posts where a meta key does not exist
- Meta query with boolean true/false value
- Get post with multiple meta keys and value
- How Do I Use WP_Query to Run This Database Query as Search Result?
- Can’t sort order of wp_query with 2 meta keys
- Query for posts from any post type but only add instock products
- WordPress Orderby Numeric Value Not Working
- orderby in custom WP Query does not work
- Display custom post type from dynamic custom field
- WordPress request fiter order by related post’s post_title
- Displaying a div from an assigned meta_value when on a page
- How to get specific post meta by title or id
- $post->post_meta not pulling any post in wordpress/php
- WP_Query of custom post type sorted by meta_key has unexpected results
- Returning a custom content types with meta values
- WP_Meta_Query object with conditionals
- How to retrive Custom Post Type Meta Fields in Custom WP_Query
- After inserting new post with wp_insert_post() the post is not visble to WP_Query, but the same WP_Query works for post inserted from wp-admin panel
- Use WP_query to match post types based on custom field values
- How to sort by multiple values in a nested WP_Query
- Custom meta fields not showing up in WP_Response Object via custom endpoint
- How to get post by meta value
- How do I get all authors posts of a custom post type outside loop
- Linking posts together with Advanced Custom Fields “both ways”
- How to get Current week and current date record wp query
- How to get post meta for custom post type and taxonomy
- get_post_meta for Custom Post Type ( CPT )
- WordPress custom post type
- Values inside a custom field to determine which category posts to display
- Querying meta values within an array
- WP_Query by a category id and a custom post_type
- How to get all custom fields of any post type
- Update CPT meta data using REST API
- How to put custom post types on front page
- Add custom post type items from frontend
- Gutenberg how to make attribute to save to meta
- Listing posts with wp-cli
- WP_Query on custom post type not displaying, multiple loops & get_template_part
- How to filter by custom post type in taxonomy archive pages
- Get the next event using date_query
- Woocommerce query specific product from specific category
- Get custom posts with certain ids in a custom loop using a shortcode
- Custom Post Status Transition Issues With Get Post Meta
- wpdb custom post_type problem
- Pagination on category page with custom post types
- Show the same Article Available in Other Categories
- Show custom post type filtered by category
- Filtering WP_Query
- Custom post taxonomies as tax_query terms?
- get_post_meta not working on publishing
- Custom post type ‘articles’ ignores posts_per_page, reserved post_type?
- WP Query with categories only shows one post and ignores the category
- Remove Post Custom Meta Box
- Can I display custom post types in home.php or need page template?
- Sort posts in loop by the WooCommerce Membership of the author
- WordPress wp_query() basic question about args
- Meta data (Tags and Categories) for Custom Posts not showing.
- Display different information of a custom post type
- Custom post type, custom taxonomy, query posts only from taxonomy (children of)
- How to get the post terms from a child taxonomy
- Create a WP_Query where if the first value of the first row is equal to the second compare other value
- Pagination for search results of custom post type [duplicate]
- WP_Query get post from a category and from another post type
- Custom Plugin – Query CPT – Display Results
- foreach loop inside the loop creating duplicates in output
- delete duplicate meta_value with same post_id
- All blog posts are not showing up
- Search CPT Title AND Meta
- Custom post-type custom query – show all posts
- Using publish_{custom-post-type} hook for custom post type to update meta doesn’t work
- meta query condition don’t work
- Filter posts by their related field’s custom field
- Custom post type category returns null
- Query a Custom Post Type using SELECT that has ACF fields to compare dates
- Get meta values from parent post and save in child post
- Wrapping an unknown amount of posts inside separate HTML Containers during WP_Query loop
- minimize wp_query call to database
- Custom post type meta fields missing on save_post_type
- sorting in wp query based on custom field value
- WordPress loop add heading before first of type
- Only show current category post
- Custom Post Type shows pagination (w/404) or posts_per_page query, but not both
- Complex strcuture as CPT or taxonomy for use in woocommerce product variations [closed]
- WP_Query for CPT with filter by another WP_Query
- Is it possible to add query parameters on the archive page?
- Query Event Posts by Date
- How can I pull information from my loop and divide them seperately?
- Retrieving IDs of child pages which are in a different post type
- Add auto increment value to custom meta
- category_name not working in WP_Query
- Fourth page of custom post type archive page does not exist
- Create action running on trashed_post hook to modify post_meta value
- Pagination broke after updateto WordPress 3.4 [duplicate]
- Cannot exclude particular post from loop of custom post type
- How to show all posts of specific custom post type with their custom fields values?
- Custom post archive with search, is_search() is false?
- Quering array of post types & pagination. Articles are repeating sometimes on different pages
- How can I show posts with the same tag?
- Load posts via AJAX without draft status
- WP Query – Can’t get posts with specific taxonomy