Get Image from Post
** this plugin is no longer being update. Please feel free to adopt me! ** This is a simple plugin which allows users to return an image from the related post.
** this plugin is no longer being update. Please feel free to adopt me! **
This is a simple plugin which allows users to return an image from the related post.
To install the plugin, please upload the folder to your plugins folder and active the plugin.
Frequently asked questions.
Installation Instructions
To install the plugin, please upload the folder to your plugins folder and active the plugin.
How do I display the results?
Insert the following code into your WordPress theme files:
General results
Without passing any parameters, the plugin will return ten results or fewer depending on how many posts you have.
horshipsrectors_get_image_from_post();
Altering the before and after values
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:
horshipsrectors_get_image_from_post(‘before=<p>&after=</p>’);
Adding a Link
If you’d like to link to the post (remember it’s not live yet) you can do so by calling:
horshipsrectors_get_image_from_post(‘link=true’);
Which image?
You can specify which image is returned using the code:
horshipsrectors_get_image_from_post(‘image=2’);
Strip Attributes
If you would like to strip the attributes such as width and height from the returned value:
horshipsrectors_get_image_from_post(‘strip=true’);