Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 112466

viky081 on "Posts"

$
0
0
<?php query_posts('category_name=slug_name&showposts=1');?>

		<?php while (have_posts()) : the_post(); ?>

<?php echo get_the_title();?>
<?php the_content(); ?>

<?php endwhile; ?>

You could paste that above code in page template(More than one page) to get that post

And note point out that slug name (category name ) to get that post


Viewing all articles
Browse latest Browse all 112466

Trending Articles