• After playing with the pages feature of WP 1.5, I was a bit concerned that groups of pages could not be made – or as far as I know they can’t via the admin panel. Currently, when pages are created they are all under the header “Pages” – just like there are other headers in the side bar for “Meta”, “Archives, “Categories”, etc. I’d like to be able to create different headers for diff bunches of pages.

    Is this possible via the admin panel? Or do I have to start playing with the php a bit? Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • One way to accomplish groupings with pages might be to create a page for each heading and make that page the parent of pages you want in that particular grouping. Not sure you would want it that way.

    Another way (and this seems attractive to me if you don’t have many pages) would be to delete the wp_list_pages function call and just hand code, in html, the permalinks as you like them onto the template. Kind of rustic.

    Thread Starter cyberianprime

    (@cyberianprime)

    This is what I tried from a tip on these boards:

    • <h2>Downloads</h2>
      <?php wp_list_pages(‘child_of=10&title_li=’);?>

    Creates a header called Downloads. The php calls the page I created, which is a child linked to a parent. The parent doesn’t show because the title_li is left blank. Does it make sense to do it this way? Just looking for the most efficient way to accomplish this.

    I’m in shock WP 1.5 doesn’t include this as a feature. This can be done easily with the Links part – by adding categories. Why wouldn’t the page feature also have categories to hold pages??

    Thread Starter cyberianprime

    (@cyberianprime)

    bump

    Thread Starter cyberianprime

    (@cyberianprime)

    Is there a better way to do this than I illustrated above? Or should I just hand code this stuff? Seems like this would be a standard feature. I must be missing something.

    I think the way you showed in post 3 looked good to me.

    I am not surprised that pages don’t have categories like links. The link categories take up an extra database table. If you were to do the same for pages, and then another feature and then another feature, next thing you know you are looking at an incomprehensible mess in the database. That’s the way I look at it at least.

    I am a bit surprised that the pages aren’t allowed to have categories like posts. Since pages are stored in the same table as posts, this might not be too huge of a deal. Still, there would be some degree of bloat and some degree of confusion. For example, when you list a category, do you show the pages and posts? Which comes first? Should someone make special code to display only the categories that hold only pages or vice versa? One thing leads to another.

    One option that occurs to meas a potential solution for you is to forego using pages and use posts instead… alter a theme to create a separation and make certain posts look like pages.

    Thread Starter cyberianprime

    (@cyberianprime)

    I’m actually just hard coding as you suggested. Create the page, get the permalink, and throw it in the php. Easy.

    Thanks for your feedback!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Titles for page groups’ is closed to new replies.