Support » Fixing WordPress » Creating a Page to Display One Category

  • Resolved cogito


    I have seen shades of this question asked over and over, but I can’t seem to find a suitable answer for my needs. I have a very minimal knowledge of PHP, but I can follow directions quite easily.

    Basically, I want to create a Page and then pull the posts of one category onto that page. It would work EXACTLY like the default category page, but as a normal page.

    To clarify, I am writing for a print publication called BNQ; I want to be able to direct people to my website at rather than — does that make sense? If so, how would I go about accomplishing this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • It’s all about The Loop 🙂

    See also The Loop In Action

    I am using a code which can do the job.
    Create a php page and use following code anyware you want.

    Remember to set ID number of the category from which you want to drag the posts in your pages.

    <?php c2c_get_recent_posts ($num_posts = 5,
    $format = ”

    • %post_URL%

    $categories = ‘3’, // space separated list of category IDs — leave empty to get all
    $orderby = ‘date’,
    $order = ‘DESC’, // either ‘ASC’ (ascending) or ‘DESC’ (descending)
    $offset = 0, // number of posts to skip
    $date_format = ‘m/d/Y’, // Date format, php-style, if different from blog’s date-format setting
    $authors = ”, // space separated list of author IDs — leave empty to get all
    $include_passworded_posts = false) ;?>

    I am quickly realizing it’s “All about the Loop.” 🙂

    Lonely, that’s EXACTLY what I’m looking for. Many thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Creating a Page to Display One Category’ is closed to new replies.