Home › Forums › General Issues › Show Custom Field results from one post type in template of another › Reply To: Show Custom Field results from one post type in template of another
Assuming the artist’s name is the also the title for your “artist” post type, match it with the “artist_name” custom field in your “release” post type.
On your “artist” single post template:
// args
$args = array(
'numberposts'=> -1,
'post_type'=> 'release',
'meta_key' => 'artist_name',
'meta_value' => the_title()
);
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.