Get Image from Post, a Free WordPress Plugin
Welcome to my blog, please feel free to subscribe to my RSS feed, join me on Twitter or leave a comment.
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’);







Feb
2009
WordPress 2.7.1 Released
The first maintenance fix for WordPress 2.7 has been released this morning, it’s a fairly big one addressing a whole slew of minor issues. You can update automatically using the WP admin tool (which is cool to see) and it’s also nice to see that Matt’s decided not to force self hosted blogs to write WordPress correctly (yet).
What did it fix?
While upgrading to the most recent version of WordPress is a fairly painless process, I appreciate that there are a lot of people who are not technically focussed. If you’d like a hand upgrading WordPress to the most recent version, drop me a line and I’ll happily do it for you.
Tags: admin tool, atoms, bottom word, category description, coments, content length, dashboard, improvements, link functions, list categories, next comments, object cache, plugins folder, preview link, theme preview, whole slew, WordPress, xmlrpc
Posted in WordPress Help