groups

name language licence
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
Current Page Item PHP BSD
DISPLAY THE FIRST IMAGE ATTACHMENT OF A WORDPRESS POST PHP BSD
WORDPRESS TEMPLATE URL PHP BSD

< 1 2 3 4 5 6 7 8 9 10 11 12 >



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...)