>
Download This Plugin | |
Download Elegant Themes | |
Name | WP-LatestPhotos |
Version | 1.0.4 |
Author | Andrej Mihajlov |
Rating | 100 |
Last updated | 2012-06-01 03:10:00 |
Downloads |
4183
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%
WP-LatestPhotos plugin added 75 kB of resources to the Home page and 75 kB of resources to the sample Post page.
WP-LatestPhotos plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.
Great! WP-LatestPhotos plugin ads no tables to your Wordpress blog database.WP-LatestPhotos is a WordPress plugin which extends your media library and gives the ability to highlight some of your latest photos. Selected images can be shown in your sidebar—or wherever you need them to be—through the shortcode or inline PHP code.
Use WP-LatestPhotos shortcode to add your photos to your post.
[WP-LatestPhotos limit="6"]
Also you can do it using these lines of PHP:
$options = array('limit' => 6, 'echo' => 1, 'link' => 'thickbox');
wp_latestphotos($options);
limit
– number of images to display (6 by default)id
– you can specify an ID for the unordered list of imageslink
– one or more values that determine the URL of where a clicked image takes the user toPossible values for link option are:
post_parent
– URL of the post to which the image is attached (it works only if image is actually attached, doh)attachment
– attachment page URL (works only if page is attached to a post)full
– full-size image URLthickbox, fancybox, lightbox or shadowbox
– media viewer dependent linkYou can mix these values up too. For example, you can use a sequence like this: post_parent, thickbox. If an image is attached to some post it uses a link to this post, otherwise it uses a Thickbox-dependent link.
before, after
– additional HTML before and after an IMG tag of each photoecho
– 0 or 1, automatically outputs generated HTML; useful when applying a function inside PHP templates