plugin-icon

Reorder Entry Images

제작자: Vayu Robins·
Get all the attachments (images only) that belong to a post/page/post-type and display them in a list. This list can be reordered by drag and drop.
등급
4.8/5
버전
1.0.8
활성화된 설치 항목
100
최근 업데이트일
Mar 20, 2017
Reorder Entry Images

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;

홈페이지 (있으면 적어주세요)

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

무료Business 요금제에서
설치하면 WordPress.com 서비스 약관서드파티 플러그인 약관에 동의하게 됩니다.
테스트된 버전
WordPress 4.7.31
이 플러그인은 다운로드할 수 있으며 에서 사용할 수 있습니다.