Display Post’s and Page’s content
-
Hi,
I’m trying to create a page template which has an image rotator at the top, getting images from posts in a specific category (which is currently working); and then display the page. At the moment it shows the image rotator then the rotator images in the place of the page content.I’ve tried the assigning the query_posts() to another variable then bringing the page content back using the original query_posts() but it doesn’t work…
Please help Here is what I have so far…
<?php get_header(); ?> <div class="container content"> <div class="span-24 pagetitle" style="margin-top:-5px; padding-top:0px; background:none;"> <div id="slideshow"> <?php query_posts('&cat='. get_option('bara_normalpage_features')); ?> <?php if (have_posts()) : ?> <?php $counter = 1; ?> <?php while (have_posts()) : the_post(); ?> <div <?php if($counter == 1){echo "class=\"active\"";} else{ echo"class=\"post\"";} ?> id="post-<?php the_ID(); ?>" > <a href="<?php the_permalink() ?>"><img src="<?php echo get_first_image() ?>" title="<?php the_title(); ?>" height="118px" /></a> </div> <?php $counter ++; ?> <?php endwhile; ?> <?php endif; ?> </div> </div> <div class="span-24 rbox rounded content" style="margin-right:6px; margin-top:0px"> <div class="inner"> <div> <?php the_content('<p class="serif">Read the rest of this page »</p>'); ?> <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?> </div> </div> </div> <?php get_footer(); ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Display Post’s and Page’s content’ is closed to new replies.