Posts Tagged ‘Image Free’

Get Image from Post, a Free WordPress Plugin

As with many of my free WordPress plugins here on the website this one is used extensively throughout my website to help me deliver a great site for my visitors. The plug basically allows users to grab an image from their posts and display it in the Loop.

It’s perfect for home pages, archives etc. where you link to include a visual idea of what the posts about.

This is a simple plugin which allows users to return an image from the related post.

Please feel free to download this plugin.

Installation

To install the plugin, please upload the folder to your plugins folder and active the plugin.

== Frequently Asked Questions ==

= How do I display the results? =

Insert the following code into your WordPress theme files: 

= General results =

ithout passing any parameters, the plugin will return ten results or fewer depending on how many posts you have.

 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:

 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:

 get_image_from_post(‘link=true’);

= Echo vs. Return =

Finally, if you’d like to copy the results into a variable you can return the results as follows:

 get_image_from_post(’show=false’);