You have to use meta query.
$query = new WP_Query( array( 'meta_key' => 'coauthor' ) );
Later, you can loop through this query.
Related Posts:
- Creating a custom post type upon registration
- how to delete all users and posts based on ‘user_meta’?
- Restrict Access to Posts based on Custom User and Post Meta Data
- Meta box with front-end styling
- Creating a custom post type upon registration for a specific user role
- How do I get all authors posts of a custom post type outside loop
- Display a post count from a custom metabox selection
- what is the correct way to compare dates in a WP query_posts meta_query
- Get post with multiple meta keys and value
- Echo all meta keys of a custom-post TYPE
- Post metadata deletes itself
- Custom Post Type: Set post_title equal to a custom post type field
- I can’t set meta_key in my custom post type query
- Show Custom Post Type by Author
- How can I include meta box content when searching?
- Automatically adding meta data to posts or multiple query help
- Trigger “unsaved changes” dialog for custom post meta changes
- Conditionally Query Custom Post Types by Post Meta for Blog Home Page?
- Displaying Metabox value (custom post type taxonomy)
- How do I sort a custom post type admin column using two meta keys?
- How can I display my custom metaboxes on a custom post template?
- Custom Post Type, Saving Multiple Checkboxes
- Create a random unique 6 digit number as custom field for custom post type
- how to interconnect custom post types?
- orderby in custom WP Query does not work
- How to only show posts assigned to current user, only in certain post types
- Populate dropdown from one custom post type inside another custom post type
- Notice: Undefined index: error and understanding wordpress
- Custom Post Types. Are there any disadvantages/advantages in using a plugin to develop them?
- Deleting Custom Posts & Meta Data on Uninstall
- How do I create an archive page as a including metadata?
- Cluster CPT posts to users based on ACF value from their profile on dashboard
- Two Custom Post Types Many to Many Relationship
- how can I register a post_meta field in an existing CPT and then call it again with get_post_custom()?
- post meta parameter in post custom-post-type endpoint with restapi
- URL rewrite add author as base
- Update postmeta Parent when post_status child change
- Update database from Quick Edit according to Checkbox state of Custom Post Type
- Dynamic Custom Fields
- Show Custom Post Type meta boxes only on Page Edit
- How to restrict author to only access one custom post type ?
- Custom filter function not working with Custom post type
- How to show featured image block in custom post type for Author?
- Importing Data from a Non-WordPress database, into WP
- List Taxonomies: Don’t list taxonomy if it has no post – depending on custom post-meta?
- Meta Data for Custom Post Type not saving
- Check if post with same meta value exists
- Do posts, pages and / or custom post type objects have unique ID numbers or can there be multiple objects with the same IDs?
- Archieve.php not loading for custom post type
- Create Array from custom post type to display a slider
- Values from meta-box not on $_POST
- post body class for current user only if they are the post author
- Returning a custom content types with meta values
- copy images from custom field to another custom field
- Cannot obtain custom meta information
- How can I output WPAlchemy repeating fields meta values in my page template?
- Save Metabox Custom Field Value
- Meta box data not saving
- Find custom post type url by author
- Display latest posts of author in a custom post type
- How can I get some of a posts meta data whilst it is still inserting?
- How to retrive Custom Post Type Meta Fields in Custom WP_Query
- Display custom post counts for author , not default posts
- Empty meta-box returns publishdate if no value is set?
- Building tags and archive using meta from custom post type
- How to order custom posts by one of the custom fields value, ‘date’?
- Use Author Ids or Names to echo different output inside loop
- Custom Meta Box with variable number of fields
- Creating an option for writing a post without an author attribution for a group blog on WordPress
- WordPress CPT Taxonomy Dashboard Search – How to include taxonomy in search?
- Custom Post Type meta data getting deleted on bulk editing taxonomies
- Check For get_post_meta on Author Archive Page
- How to create review point system for CPTs (many-to-many relationship)
- Create WordPress User in backend, and automatically create a new post in Custom Post Type with user uame as the Title in the post
- How can I write a function that would update any missing specific post metadata?
- SELECT custom post type and its meta in SQL
- How to return/export only data showing on screen in custom post type view all screen
- How to select meta key in custom database query
- Use WP_query to match post types based on custom field values
- Why is wp_list_authors not picking up Authors from CPT’s?
- Custom Function to redirect singular post if specific meta field is empty
- Autofill advanced custom field with user data
- Stored meta from attachment, video length?
- Saving Child Terms on front end not setting parent
- Author archive custom posts only?
- update a posts of other custom post type
- How do I extract the contents of a CPT’s custom field for all posts?
- How to get post meta for custom post type and taxonomy
- Creating multiple profiles under one user to assign to particular posts
- Order by post meta value gets random results
- Custom Post Type with /%shop_name%/gallery/%gallery% permastruct?
- How to create content automatically when a post is published?
- Add auto increment value to custom meta
- Updating User Meta from Custom Post Field Upon Publish Not Working
- Return only custom post types for the page, not all
- Retrieve post data via WPDB class
- Create action running on trashed_post hook to modify post_meta value
- Custom Post Type meta value is being saved in array, instead of just the string (as value)
- how to show Author post type count
- Display a list of posts whose meta field values are equal to the ID of the post being viewed?