Forums

Page of posts (3 posts)

  1. tommyboy21
    Member
    Posted 1 year ago #

    Hi,

    I have been loving the discovery of the 'Page of posts' way of showing a list of posts from one category on a page.
    However, it would be great if I could add the following:

    Allow multiple categories to be listed in the page (currently you can only show one)

    Allow for body text to also appear on the page - at present you can only show the list of posts. Would be great to add some introductory text at the beginning of the page.

    Any help would be much appreciated!

  2. alchymyth
    The Sweeper
    Posted 1 year ago #

    Allow multiple categories to be listed in the page (currently you can only show one)

    how to use the parameter see:
    http://codex.wordpress.org/Function_Reference/query_posts
    as far as i know, you can use these parameters with get_posts() as well.

    Allow for body text to also appear on the page

    put a standard loop
    http://codex.wordpress.org/The_Loop_in_Action
    before the get_posts() bit (assuming that you followed the example in the codex 'page-of-posts') - no need to use a special query there - it should automatically show just the page (what it shows depends on your code - could be the_title(); and/or the_content(); or... )

  3. tommyboy21
    Member
    Posted 1 year ago #

    Thanks for your help. I have a bit of reading and learning to do then! :)

Topic Closed

This topic has been closed to new replies.

About this Topic