You should use the post types slug for the post_type argument.. which I’m guessing would be portfolio-item?
The reason why your ACF field is not being displayed is because you’re using the_field which tries to echo the result itself. In this case you’re already doing that so replace the_field with get_field and you should be golden!
Viewing 2 posts - 1 through 2 (of 2 total)
The topic ‘Custom field not showing on page – title displays fine’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users