How to get specific post meta by title or id
get_field is a replacement for get_post_meta you have to use only it: $my_post_meta = get_field(‘album_image’, 556); if ( ! empty($my_post_meta) ) { // use the image } If you don’t know the ID and want retrieve the post meta via post name, you have to use WP_Query or get_posts to ge the post via slug: … Read more