Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm using get_posts() to get attachments from the post and use it in the slider. The issue is new uploader doesn't have that "Gallery" tab which was perfectly suitable for this. It also seems to be breaking original code and you can't remove / reorder images from this new uploader now. Is there a way to fix this?

The code is below:

        <ul class="slides">

        <?php if ( have_posts() ) : while ( have_posts() ) : the_post();    

         $args = array(

           'post_type' => 'attachment',

           'numberposts' => -1,

           'post_status' => null,

           'post_parent' => $post->ID,

           'order'=> 'ASC', 

           'orderby' => 'menu_order'

          );



          $attachments = get_posts( $args );

             if ( $attachments ) {

                foreach ( $attachments as $attachment ) {

                   echo '<li>';

                   echo wp_get_attachment_image( $attachment->ID, 'full' );

                   echo '</li>';

                  }

             }

         endwhile; endif; ?>
        </ul>
        <!-- slider ends -->
share|improve this question
    
the new media window has the gallery option in the left column, Create Gallery. images can be reordered at the bottom of that tab. –  Milo Dec 20 '12 at 17:35
    
Yes, but when upgrading from 3.4 it kinda screws everything. –  denoizzed Dec 20 '12 at 21:33

1 Answer 1

You can still do this with the 3.5 uploader.

  1. Click the Add Media button
  2. Click the Insert Media Tab (top left)
  3. Click the Media Library Tab (top center under Insert Media heading)
  4. Click the Dropdown SELECT box and select Uploaded To This Page
  5. Drag and drop the thumbnails to reorder them as you were able to before

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.