>
Download This Plugin | |
Download Elegant Themes | |
Name | Reorder Entry Images |
Version | 1.0.5 |
Author | Vayu Robins |
Rating | 96 |
Last updated | 2014-09-04 09:29:00 |
Downloads |
1912
|
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%
Reorder Entry Images plugin added 2 bytes of resources to the Home page and 8 bytes of resources to the sample Post page.
Reorder Entry Images plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.
Great! Reorder Entry Images plugin ads no tables to your Wordpress blog database.This plugin will help you manually reorder or sort the images attached to your post, custom post type or page. Once installed and activated you can choose which post type or page you want this functionality on. All the images attached to that specific post or page will then be listed on the post-edit page in the admin. You will then be able to drag & drop the images in the order you want them to be listed.
This will only affect those images uploaded to the specific post or page.
Here is the php code that will help you display the images in your theme:
$thumb_id = get_post_thumbnail_id( get_the_ID() );
$args = array(
'post_type' => 'attachment',
'post_mime_type' => 'image/jpeg',
'orderby' => 'menu_order',
'numberposts' => -1,
'order' => 'ASC',
'post_parent' => get_the_ID(),
'exclude' => $thumb_id // Exclude featured thumbnail
);
$attachments = get_posts($args);
if ( $attachments ) :
foreach ( $attachments as $attachment ) :
echo wp_get_attachment_image( $attachment->ID, 'full' );
endforeach;
endif;
Insert images into post/page with this shortcode: [list_attached_images]
Her are some parameters
Example:
[list_attached_images imagesize="large" numberimages="3" imagelink="true" order="asc" listclass="my-images"]