Both code snippets enable you to display captions added to featured images when using the Genesis featured posts widget.
When you add captions to featured images on any Edit Post screen, they do not automatically display with your image.
What you need to do is use custom code to display the captions otherwise they won’t by default.
There’s several ways you can do this and there’s also other ways of adding your caption data to each featured image without editing each image.
Here’s 2 examples of what the code in this tutorial produces:
- The caption marked no. 1 uses the 1st solution
- The caption marked no. 2 uses the 2nd solution
Here’s both solutions for logged in members:
Leave a Reply