• Runtheball

    (@eisenbart)


    Alchymth’s post re: creating a page of posts was very helpful, and it worked great. But it doesn’t seem to allow the content of the page to come through – it only displays the result of the loop for the specified post category. On the page that uses this template, I have an image and some text that I want to appear before the loop. How can I modify the pageofposts.php file to display the page content?

Viewing 1 replies (of 1 total)
  • Michael

    (@alchymyth)

    here it is:

    http://pastebin.com/PPFcfzjQ

    if you want to define the page’s output yourself, replace line 15 and 16:

    <?php get_template_part( 'content', 'page' ); ?>
                    <?php comments_template( '', true ); ?>

    with the coding for your output (inspiration can be found in content-page.php)

Viewing 1 replies (of 1 total)
  • The topic ‘Display a page of posts along with page content’ is closed to new replies.