Allows users to fetch an image from a post within the Loop.
Insert the following code into your WordPress theme files:
Without passing any parameters, the plugin will return ten results or fewer depending on how many posts you have.
By default the plugin wraps your code in list item (<li>) tags but you can specify how to format the results using the following code:
If you'd like to link to the post (remember it's not live yet) you can do so by calling:
You can specify which image is returned using the code:
If you would like to strip the attributes such as width and height from the returned value:
Finally, if you'd like to copy the results into a variable you can return the results as follows:
Requires: 3.2.0 or higher
Compatible up to: 4.1.0
Last Updated: 5 months ago
Active Installs: 70+
Got something to say? Need help?