I used the plugin to create two custom fields (news_source and news_link) for a new post type (news). I’m trying to use the following code to display the title and the two new fields on my home page. It pulls the title but it doesn’t pull the custom fields even though I can see the custom fields on the updated single.php page. I think my syntax is wrong for the second echo statement because it isn’t returning a value between the paragraph tags. What did I do wrong?
What does $recent["news_source"] return? I don’t think it returns anything useful because there is no “news_source” item in the post array. Try it with get_field('news_source') or possibly get_field('news_source',$recent['ID']).