I need to know how to display all images from the current page siblings.
for eg. I got two parents (Hockey and football) with children. In all this children I got one or several images attached (I've simply uploaded them through wordpress deafult uploader). Now I want a page (called "All images from all teams" ) that display all images that are attached to their siblings / has the same parent as current. AND if you click on let say a images taken from the "New York Rangers" page, you will be sent to that page.
Hockey
- Detroit Red Wings
- Toronto Maple Leafs
- New York Rangers
- All images from all hockey teams
Football
- Liverpool
- Arsenal
- Manchester United
- All images from all football teams
Help! Please!
My code:
<?php get_header(); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="big-img"> <?php echo do_shortcode('[portfolio_slideshow size=full navpos=disable trans=scrollHorz pagerstyle=bullets autoplay=true]'); ?> </div> <div class="post-content"> <div class="left-nav"> <?php include "left-sidebar.php";?> </div> <div class="content"> <div class="post-title"> <h1><?php the_title(); ?></h1></div> <?php the_content('read the entry »'); ?> <?php the_tags( '<div class="main-meta"> Tags: ', ', ', '</div>'); ?> <?php echo do_shortcode('[portfolio_slideshow size=thumbnail carousel=false navpos=disable ]'); ?> <div class="clear"></div> </div> <?php endwhile; ?> <?php next_posts_link('« old Posts') ?> <?php previous_posts_link('new Posts »') ?> <?php else : ?> Not Found <?php include (TEMPLATEPATH . "/searchform.php"); ?> <?php endif; ?> </div> </div> <div class="right-nav"> <?php include "right-sidebar.php";?> </div> <?php include "footer.php";?>
