SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Zealot
    Join Date
    Apr 2010
    Location
    West Kent, UK
    Posts
    118
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Is it really not possible to have two pages for posts?

    From what I can see I gather that it is not possible to have two blog pages in one WP site.

    I am trying to set up a site for a poet who wants to post poems and more standard blog posts. I would like to keep them seperate so, one Blog and a page for poems but she wants to post them all in the same way.

    Can't I have a loop on one page that excludes a category (poem) and a loop on another page that excludes everything (blog) except the poetry?

    If that's possible, any chance of a few pointers so that I can push on a bit?

    Many thanks

    Martin

  2. #2
    SitePoint Zealot
    Join Date
    Jul 2005
    Location
    Houston, TX
    Posts
    167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by martcol View Post
    From what I can see I gather that it is not possible to have two blog pages in one WP site.

    I am trying to set up a site for a poet who wants to post poems and more standard blog posts. I would like to keep them seperate so, one Blog and a page for poems but she wants to post them all in the same way.

    Can't I have a loop on one page that excludes a category (poem) and a loop on another page that excludes everything (blog) except the poetry?

    If that's possible, any chance of a few pointers so that I can push on a bit?

    Many thanks

    Martin

    Sure you can. Create a page for each type of category you want to show posts for. Create a template to show only posts from those categories and tell the page to use that particular template.

    Some examples in WP's docs:

    http://codex.wordpress.org/The_Loop
    Tim Trice
    Tim Trice.com
    WP Eclipse.com
    Online Marketing and Website Development

  3. #3
    SitePoint Zealot
    Join Date
    Apr 2010
    Location
    West Kent, UK
    Posts
    118
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by timothytrice View Post
    Sure you can...
    Oh Gosh!

    thanks for that. I think I might be more than half way there1

    What I did was to copy category.php into my child theme. and made a category-poem.php and a category-blog.php. I then just cut n' paste the loop into the page and Wordpress seems to take care of everything else!

    Am I on the right lines?

    Thanks again

    Martin

  4. #4
    SitePoint Wizard rguy84's Avatar
    Join Date
    Sep 2005
    Location
    Durham, NC
    Posts
    1,659
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    yep! I assume you did the exclude parts as you said in #1?
    Ryan B | My Blog | Twitter

  5. #5
    SitePoint Enthusiast
    Join Date
    May 2009
    Posts
    71
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by timothytrice View Post
    Sure you can. Create a page for each type of category you want to show posts for. Create a template to show only posts from those categories and tell the page to use that particular template.

    Some examples in WP's docs:

    http://codex.wordpress.org/The_Loop
    This helps me allot. Category's or PAGES can be used to display extra posts then you can create more then one page for posts. Post multiple posts on a page and bingo bango you got more room.

  6. #6
    SitePoint Zealot
    Join Date
    Apr 2010
    Location
    West Kent, UK
    Posts
    118
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ContentForYou View Post
    This helps me allot...
    It has helped me too.

    This was going round and round in my head for months even though it seems a realtively simple thing.

    Martin

  7. #7
    SitePoint Zealot ZXT's Avatar
    Join Date
    Feb 2010
    Posts
    104
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I guess I'm too late to answer this now


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •