Dizze plugin is net hifke mei de lêste 3 grutte releases fan WordPress . It kin net langer wurde ûnderhâlden of stipe en kin kompatibiliteitsproblemen hawwe as it wurdt brûkt mei resinte ferzjes fan WordPress.

Reorder Entry Images

Beskriuwing

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.

Insert images into post/page with this shortcode: [list_attached_images]
Her are some parameters

  • imagesize: ie. thumbnail, medium, large
  • numberimages: ie. -1, 0, 5
  • imagelink: link to the image file – false/true
  • order: ie. desc, asc
  • listclass: use your own class

Example:
[list_attached_images imagesize=”large” numberimages=”3″ imagelink=”true” order=”asc” listclass=”my-images”]

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;

Webside

http://vayu.dk/reorder-entry-images/

Skermôfbyldings

  • Drag & drop your images in the order you choose.
  • Settings page - set which post type or page to use this.

Ynstallaasje

  1. Upload reorder-entry-images to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to Settings->Reorder images and choose which post type or page to use this.

FAQ

When I change the image order, nothing happens?

Please remember to save the changes by pressing the Update button.

Resinsjes

26 juny, 2018
really handy plugin. I wish image thumbnails could be bigger though
1 novimber, 2016
I have a nice simple gallery for my posts and just needed to order the images. I was trying so hard not to have to install a full Gallery plugin for this. Thanks so much!
Lês alle 6 resinsjes

Meiwurkers & amp; Untwikkelders

"Reorder Entry Images" is iepen boarne software. De folgjende minsken hawwe bydroegen oan dizze plugin.

Meiwurkers

Oersette "Reorder Entry Images" yn jo taal.

Ynteressearre yn ûntwikkeling?

Blêdzje troch de koade , besjoch de SVN-repository , of abonnearje op it ûntwikkelingslogboek troch RSS .

Feroaringslog

1.0.8

  • Added Italian translation, thanks to W3B – Web Agency – w3b.it.

1.0.7

  • Updated for WordPress 4.7.2
  • Fix: Delete function on each image row was not working.

1.0.6

  • Updated for WordPress 4.4.3
  • Fetaure: Added delete function on each image row.

1.0.5

  • Updated for WordPress 4.0.

1.0.4

  • Added option to include feature image in order list.
  • Added support for png and gif images.
  • Tested in WordPress 3.9.2

1.0.3

  • Updated UI for WordPress 3.8.

1.0.2

  • Added shortcode, to add images to your post/page.
  • Updated settings page with som information about the plugin and author.

1.0.1

  • Fixed minor bug.

1.0

  • Launch first version of plugin.