Revision: 15225
Updated Code
at August 10, 2009 06:56 by zartgesotten
Updated Code
<?php if (is_page('pagename')) { query_posts('cat=yx') } ?>
<!--or use query_posts like this:(full loop)-->
<?php
$displayposts = new WP_Query();
$displayposts->query('cat=5');
while ($displayposts->have_posts()) : $displayposts->the_post();
?>
<?php the_content('read more...'); ?>
<?php edit_post_link('edit', '', ''); ?>
<?php endwhile; ?>
Revision: 15224
Updated Code
at August 10, 2009 06:56 by zartgesotten
Updated Code
<?php if (is_page('pagename')) { query_posts('cat=yx') } ?>
//or use query_posts like this:(full loop)
<?php
$displayposts = new WP_Query();
$displayposts->query('cat=5');
while ($displayposts->have_posts()) : $displayposts->the_post();
?>
<?php the_content('read more...'); ?>
<?php edit_post_link('edit', '', ''); ?>
<?php endwhile; ?>
Revision: 15223
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at June 27, 2009 14:47 by zartgesotten
Initial Code
<?php if (is_page('xy')) { query_posts('cat=yx') } ?>
Initial URL
Initial Description
Initial Title
Wordpress display content of a category on a page
Initial Tags
wordpress, category, theme
Initial Language
PHP