while ( $loop -> have_post() ) : $loop->the_post();
Your missing an s have_post()
should be have_posts();
Your title says retrieving meta-box and I am assuming you mean the post_meta. Which you use the get_post_meta() function.
Related Posts:
- How to add multiple images to a custom post type single post?
- How to sort CPT by custom meta value (date), and return posts month by month
- Displaying a div from an assigned meta_value when on a page
- Inefficient Query Confusion
- Filter posts of custom post type by meta key in (List All Section)
- WP_Meta_Query object with conditionals
- How to retrive Custom Post Type Meta Fields in Custom WP_Query
- how to compare different timestamps in wp-query for events custom post types?
- Wp Meta Query does not work while simple Query Works
- Wp Query sort order from custom MetaBox
- How to query custom post then display sections by meta value
- Custom Post Type + Custom Meta Query Not Showing 2012 Posts
- Add Standard Page Attributes Metabox for Page Parent
- Custom-Posttype & Custom Taxonomy WP_Query
- dynamically add a custom field or metabox to custom post type [duplicate]
- Crafting WP_Query array, sort by date
- Custom loop with multiple taxonomy queries
- Return one unique custom post type result when it shares a custom taxonomy in WP_QUERY?
- Make metabox of custom post type fully autosave- and bulk-/quick-edit compatible
- Converting the_content string to an array?
- Custom Post Type uses Custom Tags in add_filter?
- forming WP_Query for posts of all post types but from specific categories
- Post Quote with image on header for news site
- Get latest 3 posts from multiple CPT in one query
- Custom date changer post_date => future – missed schedule error
- Loop to fetch 3 post_thumbnail instances from 3 most recent custom post types named “portfolio”
- How to Create an Image Upload Box for Custom Posts?
- How to store multiple values in 1 meta_key with radio input?
- Display upcoming Events for next 7 Days
- What is the best way to correlate one-to-many content-type relationships?
- Is it possible to create relational metabox values in a custom post?
- Changing custom type name hides the posts
- 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 can I get the number of custom post type posts that have a specific attachment image set?
- How to use load more custom post type data normal or according to on click category tab In WP
- Visual editor issue by having multiple tiny mce editors in a CPT
- orderby rand is not working for a custom post types
- Problem querying Custom post type by custom fields
- Found 2 elements with non-unique id (#_ajax_nonce) and (#_wpnonce)
- Orderby CPT custom fields not working
- Custom taxonomy rewrite give pagination 404
- WP_Query order by custom field, then randomly order some of results
- A better way to add a meta box to custom post types
- Why are taxonomy terms not saving when using custom meta boxes with radio button taxonomy selectors?
- 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?
- Plugin – Combine Meta Box Input Fields into single saveble record
- Getting Custom Post Type Meta on Publish
- creat filter with wp_query
- Troubles with acf/save_post and WP_Query
- A method for ordering mixed dates in search result loop (theory only, no actual code)
- Query custom post type with ACF Date
- How to do WP_Query with two meta fields with orderby clause
- Stuck in Order by more then one
- Display featured image from one CPT within another CPT query
- 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 Filtering not working on Custom Meta Box using Radio Buttons
- 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?
- Query Multiple Custom Posts by Custom Fields
- What’s the WP way to load remaining custom posts?
- How to Upload CSV Data into Custom Post Type Data with Metabox programmatically
- Why is this query not working? (Standard posts + custom post type)
- How do you paginate a query grouped by month?
- Grouping metadatas into one
- Custom taxonomies relationship
- Get Posts by multiple custom fields is not working
- Anon function and add_meta_box
- Custom post type ‘articles’ ignores posts_per_page, reserved post_type?
- Several post types on WP Query by tag and taxonomy
- WP Query with categories only shows one post and ignores the category
- Metabox not show in categories custom post type cmb2
- 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
- Order Custom Post Type by Custom Field Value
- 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
- Repeatable Fields Metabox with Textarea (or wp_editor)
- How to use TinyMCE Editor for one of my custom post meta field?
- Display correctly using metabox.io
- Create Connection Between two post types
- How to have this permalink structure: post_type/postname/custom_inner_page
- Problem: wp_query outputs all images on site
- pre_get_posts for custom page builder meta box
- Disable closing on metaboxes
- Query Custom Post Type Taxonomy term with multiple parameters
- 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
- Prioritize posts in query by meta keys?