kurdt_the_goat
Member
Posted 2 years ago #
I'm wondering if anyone can help...
I'm not sure how to modify the code for pageofposts.php to display the page content first, and then a list of posts from a category.
So i'm after:
Page Title
Page Content
List of Posts from X Category
Any help greatly appreciated! Thanks :)
Take the loop code from the wp-content/themes/default/page.php and put that after the first div in that example.
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><?php the_title(); ?></h2>
<div class="entry">
<?php the_content('<p class="serif">Read the rest of this page »</p>'); ?>
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
</div>
</div>
<?php endwhile; endif; ?>
kurdt_the_goat
Member
Posted 2 years ago #
Works exactly like i wanted, thank you very much!