That worked! Thank you so much! I see that the syntax I was trying before was way off, and I hadn’t properly wrapped the div content to be inserted the correct way. I kept getting parse errors.
That worked! Thanks for your help!
I’m developing locally, so I don’t have a URL to share yet. Here is a Gist with the full code for my index.php file:
https://gist.github.com/bibliofille/56f2a29528b708a16db6a09c79ea5859
The ACF relationship fields called after the main loop are working fine, but the one called before the main loop shows up properly, but messes up the loop and prevents that content from appearing.
Here is a screenshot of the result of my index.php file. There should be a post title and thumbnail image under every small green line in the grid.
Thanks! That helped, but I’m still running into an issue. The featured post link appears, but how do I get the featured image to also appear?
Also, the rest of the loop is now messed up and the post titles and featured images do not show up.
Could there be an error where I was resetting the post data?
<?php wp_reset_postdata(); // IMPORTANT - reset the $post object so the rest of the page works correctly ?>
<?php endif; ?>