WordPress.org

Ready to get started?Download WordPress

Forums

Custom Category Page (2 posts)

  1. jrkellew
    Member
    Posted 3 years ago #

    Hi all,

    I am building a site for a friend, based on his design & he wanted the blog page to function as a news page broken up by months.I built the page using this archival example by wordpress guy: http://wpguy.com/articles/an-archives-page-with-all-the-posts-in-cronological-order/

    You can see the finished page here (login: test, password: test):
    http://confitdesign.com/test/backpackerlove/newsevents

    For the main archival pages (category, author, tags) he would like a similar layout with the posts being organized within their categories by date, broken up by month.

    I am not quite sure whether this is possible as the example above uses get_posts to pull all the posts in for the main news page. If I re-use this for the category.php page, I pull in every posts or I can limit it to pull in posts from certain categories, however I want to use category.php to pull in just the category that the user has clicked on.

    Is their anyway to achieve this within the loop?

    I have posted a link to my main news page below code below

    http://wordpress.pastebin.ca/1946787

    Any help would be greatly appreciated.

  2. jrkellew
    Member
    Posted 3 years ago #

    Anyone have any ideas on how to do this?

    I really can't think of how to do this unless I modify the main loop to break posts up by month as displayed on the news/events page above.

    I have no problem with doing this as he wants the same layout for the main news page as well as all the archival pages, however, I am not sure if this is possible...any suggestions?

Topic Closed

This topic has been closed to new replies.

About this Topic