Help with displaying content on a page.
-
Hi,
At the top of my page I have a wordpress loop to get back the latest post in category three with which I bring back a link to it. (This code is in header.php)<?php query_posts('cat=3&showposts=1'); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <a href="<?php bloginfo('url'); ?>/category/portfolio/#<?php the_ID(); ?>"> <?php endwhile; ?> <?php endif; ?>
This works in index.php when I just use a new query and can do a different loop for whatever I want. The problem is I can’t show any content using the PAGE TEMPLATE. All it does is include the same post in the header with the title and content (which I want to be the title and the content of page!).
Please can you help me out here to get the page template working, any more information you need just ask.
Cheers,
Steve
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Help with displaying content on a page.’ is closed to new replies.