php - image in seperate page with other images at bottom -
on sites, if click image within post, image in new page images in post @ bottom. how replicate behavior?
i have code don't know whether correct or not. don't know add this. can explain add exactly?
$attachments = get_children(array('post_parent' => $post->id, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'asc', 'orderby' => 'menu_order id')); foreach($attachments $att_id => $attachment) { $full_img_url = wp_get_attachment_url($attachment->id); // code here }
what you're describing default feature "galleries" of e.g. twentyten
default theme (given don't misunderstand you). in or around line 58 of loop.php
file you'll find:
<?php /* how display posts of gallery format. gallery category old way. */ ?>
the code after should give hint on how accomplish mentioned look.
when adding image post, wp wrap link you, pointing @ type of representation.
Comments
Post a Comment