Should be as easy as this – as long as your dis_artist meta key doesn’t hold an array.
if ( get_the_title() === get_post_meta( get_the_ID(), "dis_artist", true ) )
{
// do stuff
}
Related Posts:
- Advanced search form with filters for custom taxonomies and custom fields
- Meta query with boolean true/false value
- Custom field values deleted when trashing custom post type
- How to get all custom fields of any post type
- Update CPT meta data using REST API
- How do I remove all the metaboxes for a custom post type?
- Custom Queries: Joining On Meta Values From Two Custom Post Types
- Gutenberg how to make attribute to save to meta
- Get all posts from custom post type and insert in select input as metabox
- WordPress Admin Panel search posts with custom post meta values along with title
- How to Update post status using meta data in Custom post TYpe
- Rest Api v2 orderby meta_key in custom post type
- bulk Update post_meta with default values
- Add Post Url to Manage Edit Screen
- Display all custom post type posts and order them by an optional meta_key
- How can I get_post_meta() in the most efficient way?
- need advice on how to do a lists using custom post types – taxonomy vs postmeta
- Custom Post Status Transition Issues With Get Post Meta
- List all images from a single post meta value
- Show the same Article Available in Other Categories
- how to delete all users and posts based on ‘user_meta’?
- Meta Key Value in current-user-only loop
- How to set YouTube video as featured image?
- How to implement a Google map store locator
- Widget: Custom Post Type Post Listing Dropdown on Admin Side
- Update Post Meta for a logged in user
- How to duplicate entire custom post type
- get_post_meta not working on publishing
- get_post_meta returning no value in custom post type alert email
- WordPress request fiter order by related post’s post_title
- Getting thumbnails of a custom posts featured images in a page-templates metabox
- Remove Post Custom Meta Box
- Meta Data for Custom Post Type not saving
- Using preg_replace to filter custom textarea
- 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
- Meta data (Tags and Categories) for Custom Posts not showing.
- Display different information of a custom post type
- Create Array from custom post type to display a slider
- How to get specific post meta by title or id
- How can I display a drop-down select of Post Names
- $post->post_meta not pulling any post in wordpress/php
- Values from meta-box not on $_POST
- WP_Query of custom post type sorted by meta_key has unexpected results
- 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
- 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
- delete duplicate meta_value with same post_id
- Search CPT Title AND Meta
- best way to use custom taxonomy, post type and meta in a job system
- 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’?
- Filter search posts by post meta?
- Custom Meta Box with variable number of fields
- WordPress CPT Taxonomy Dashboard Search – How to include taxonomy in search?
- Custom Post Type meta data getting deleted on bulk editing taxonomies
- How to create review point system for CPTs (many-to-many relationship)
- Using publish_{custom-post-type} hook for custom post type to update meta doesn’t work
- How can I write a function that would update any missing specific post metadata?
- SELECT custom post type and its meta in SQL
- Unable to gather Image URL from Custom Post Type’s; Custom Meta Field
- Attaching more than 1 parent (Post) to a media file
- How to return/export only data showing on screen in custom post type view all screen
- Use WP_query to match post types based on custom field values
- Custom meta fields not showing up in WP_Response Object via custom endpoint
- How to get post by meta value
- Get meta values from parent post and save in child post
- How do I get all authors posts of a custom post type outside loop
- Custom Function to redirect singular post if specific meta field is empty
- Stored meta from attachment, video length?
- Custom post type meta fields missing on save_post_type
- Saving Child Terms on front end not setting parent
- Order posts by meta value hiding posts instead of re-ordering
- custom search results – order results differently by post type
- 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
- get_post_meta for Custom Post Type ( CPT )
- Delete custom post type metadata without deleting the post in admin area
- Order by post meta value gets random results
- Complex strcuture as CPT or taxonomy for use in woocommerce product variations [closed]
- How to create content automatically when a post is published?
- Rich Custom Field for Custom Post type not saving
- Add auto increment value to custom meta
- 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
- Random meta field from specific custom post type
- Custom Post Type meta value is being saved in array, instead of just the string (as value)
- Custom Form Data save after Login User
- Changing to different post type maintains the redirection?
- How do I add the “orange counter” next to a Custom Post Type?
- Quering a post object based on another related post object
- rest_api_init is not getting invoked inside a Class