Image attachments – available?
-
Hello everyone!
I’ve just came across new RC3 version of WordPress, and tried to import images to the post as simple attachment.
Not sure if that’s by the design or just a bug, there doesn’t seem any option to do so…
I don’t want to insert images into post, but than, call them using Theme as in the Documentation.<ul> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); $args = array( 'post_type' => 'attachment', 'numberposts' => -1, 'post_status' => null, 'post_parent' => $post->ID ); $attachments = get_posts( $args ); if ( $attachments ) { foreach ( $attachments as $attachment ) { echo '<li>'; echo wp_get_attachment_image( $attachment->ID, 'full' ); echo '<p>'; echo apply_filters( 'the_title', $attachment->post_title ); echo '</p></li>'; } } endwhile; endif; ?> </ul>
And so far, it displays all posible attachments added at any time…
Just wonder if there is or will be an option to select the attachments for specific post or if this functionality is now all over?
Need to know how should I develop some functionality for the client.
Thanks for any info.
Rafal.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Image attachments – available?’ is closed to new replies.