List of pages in the current pages category for the sidebar (3 posts)

  1. bravecreatures
    Posted 10 years ago #

    Hey there,

    I have been reading through the documentation and circling around a solution, but I cant seem to crack it. Hopefully someone can help.

    I am trying to create a custom template with its own side bar (done that successfully) in which I want to show a list of pages within the current pages category. Heirarchically by parent/child relationship would be great.

    Let me tell you why. I a largish number of "pages" (as opposed to posts) in the site and they are grouped in parent child relationships (or can be when I get it done). I would like them to have their own dynamic navigation if possible so that I can avoid running around updating the navigation all the time.

    I al ready have a plug in that lets me tweak the category of the page, but if there is another way of working this I am happy to ditch that approach.

    An Example would be the following. Assume all of this is in a category called "coprrespondance"

    - Letters
    - - Jan 16
    - - Feb 18
    - - Mar 4
    - Memos
    - - re: Fees
    - - re: Attendance

    I could deal with creating tempates/sidebars for each of the different groupings of pages if necessary and manually entering the cat id, that would be no problem.

    The thing is, iam not much of a php coder, so I am having trouble with creating a loop in the sidebar.

    I hope someone can help.


  2. opq
    Posted 10 years ago #

    Has anyone found a solution for this?

  3. Chris_K
    Posted 10 years ago #

    Here's the trick: Out of the box, Pages don't have categories. Only posts do. With that being said, I get lost pretty quick reading the OP.

Topic Closed

This topic has been closed to new replies.

About this Topic