Only show content for selected page
-
Morning!!
Your line of code, query_posts( “post_type=page&orderby=menu_order title&order=ASC&post_parent=$post->ID” ) worked a treat last week thanks
I need something similar for my case studies page: https://aet.inpreview.net/test/wordpress/projects/ufac/
There are 2 different case studies, if you click through to one, it shows 2 sets of images on the right for both case studies
and also, if there is a blank image, it shows this too?!
My code:
<?php query_posts( "post_type=page&orderby=menu_order title&order=ASC" ); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php get_template_part( 'cs', 'featured' ); // Returns cs-featured.php) ?> <?php endwhile; endif; ?> cs-featured.php <div id="col2list"> <?php global $cfs; echo $cfs->get('cs_features'); ?> </div> <ul id="col2pics"> <li><img src="<?php global $cfs; echo $cfs->get('cs_image_1'); ?>" alt="<?php global $cfs; echo $cfs->get('cs_image_text1'); ?>" width="100%" height="100%" /><h6><?php global $cfs; echo $cfs->get('cs_image_text1'); ?></h6></li> <li><img src="<?php global $cfs; echo $cfs->get('cs_image_2'); ?>" alt="<?php global $cfs; echo $cfs->get('cs_image_text2'); ?>" width="100%" height="100%" /><h6><?php global $cfs; echo $cfs->get('cs_image_text1'); ?></h6></li> <li><img src="<?php global $cfs; echo $cfs->get('cs_image_3'); ?>" alt="<?php global $cfs; echo $cfs->get('cs_image_text3'); ?>" width="100%" height="100%" /><h6><?php global $cfs; echo $cfs->get('cs_image_text1'); ?></h6></li> <li><img src="<?php global $cfs; echo $cfs->get('cs_image_4'); ?>" alt="<?php global $cfs; echo $cfs->get('cs_image_text4'); ?>" width="100%" height="100%" /><h6><?php global $cfs; echo $cfs->get('cs_image_text1'); ?></h6></li>
Any ideas much appreciated!
John
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Only show content for selected page’ is closed to new replies.