Template page with one post
-
Hello!
I’m new in php and I have some doubts…I made a template page like that:
(A)<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> <?php the_content(); ?> <strong>/*--> I received html text */</strong> <?php endwhile; ?>(B)
<?php query_posts('category_name=Blog&posts_per_page=1'); ?> <?php while (have_posts()) : the_post(); ?> <strong>/*--> I received the last post of category: Blog */</strong> <?php endwhile; ?>[Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
It is OK but I want to insert firs B and then A.
Any help please?
thank you
<?php endwhile; ?>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Template page with one post’ is closed to new replies.