groups

name language licence
Better more link PHP BSD
WORDPRESS SHORTCODE PHP BSD
WORDPRESS INCLUDE PAGE CONTENT PHP BSD
WORDPRESS EXCLUDE CAT FROM FRONTPAGE PHP BSD
Change The Default Wordpress Excerpt [...] PHP BSD
Wordpress Page Loop PHP BSD
Wordpress: Page With Content From Only A Particular Category PHP BSD
LOADING JAVASCRIPT LIBRARIES IN WORDPRESS GENERATED PAGE PHP BSD

< 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 >



language: PHP
licence: BSD

Wordpress: Page With Content From Only A Particular Category

options: view full snippetsend to code collector
<?php query_posts('cat=3&showposts=10'); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="blog-entry">
	<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h1>
	<div class="post_content">
		<?php the_content(__('Read more…')); ?>
	</div> <!– close post content –>
	<div class="post-end-content">
			Posted in <?php the_category(', ') ?> | <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?> <?php edit_post_link('Edit','',''); ?>
	</div>	
</div>
<?php endwhile; else: ?>
	Sorry, but you are looking for something that isn‘t here.
<?php endif; ?>
</div>
	
(Continues...)