WordPress category management

Discussion in 'HTML & Website Design' started by swollenpickles, Mar 25, 2007.

  1. #1
    I have a site built on wordpress with four pages. Each page represents a category, how can I display all posts/pages that fall under that category to display under the main page automatically? What code do I need to place in the body of the page to get it to happen?
     
    swollenpickles, Mar 25, 2007 IP
  2. swollenpickles

    swollenpickles Active Member

    Messages:
    1,271
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    80
    #2
    bump...............
     
    swollenpickles, Mar 26, 2007 IP
  3. missdanni

    missdanni Guest

    Best Answers:
    0
    #3
    Why do you want to use pages for categories? WordPress automatically does what you want when you add categories and sort your posts accordingly.

    Unless I have misunderstood.
     
    missdanni, Mar 27, 2007 IP
  4. jared

    jared Peon

    Messages:
    231
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I think he means he has each page as a category but is going to have subpages under each page.

    You should be able to get it to work using wp_list_pages.
    more info: http://codex.wordpress.org/Template_Tags/wp_list_pages

    You can easily make it do something like

    Page 1
    -page 1a
    -page 1b
    -page 1c
    Page 2
    -page 2a
    -page 2b

    etc. Just use subpage under each page.

    cheers
     
    jared, Mar 27, 2007 IP
  5. ferlie

    ferlie Peon

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    bro, can you help me about this.
    This is the picture:

    [​IMG]

    i want, when i click the number (1), it will connect to (2). Can anyone help me?
     
    ferlie, Mar 27, 2007 IP
  6. ferlie

    ferlie Peon

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    no body can help about this???
     
    ferlie, Mar 28, 2007 IP
  7. swollenpickles

    swollenpickles Active Member

    Messages:
    1,271
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    80
    #7
    So you can incorporate code into the body of your page to get this to work?

     
    swollenpickles, Mar 28, 2007 IP
  8. jared

    jared Peon

    Messages:
    231
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #8
    You have to edit the code in your theme template files.

    they are in /wp-content/themes/<your theme name here>/

    if you want the menu to appear on every page, you are probably wanting to edit the sidebar.php (assuming your theme features a sidebar).

    cheers
     
    jared, Mar 28, 2007 IP