• Resolved johnandersson

    (@johnandersson)


    Hi!

    New to WordPress and have a question. Ia€?ve used the search function, read everything that I could think was related to the issue on the Codex but havena€?t been able to find the answer myself. My site btw is at https://projectjohn.net.

    Ia€?ve added a few pages and also changed the name in the sidebar from Pages to Projects. No biggie there. But I would like to add some more pages under a different category, something like this:

    Projects >>
    Fragment
    Novels

    About >>
    The site
    John

    Categories >>
    Miscellaneous

    Ita€?s the About-thingy Ia€?m having problem with. Ia€?ve added the a href-tags in the sidebar.php but then I have to create every about-page manually but I would like to have the same setup as with the default Pages-setting, with page_ida€?s etc.

    I know it can be done, Ia€?ve seen it on other sites but I dona€?t have the brain to figure out how. I have no php skills btw but decent html knowledge.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Pages don’t have categories.
    What you could try: when creating (or editing) the Fragment and Novels – choose Projects as their “parent” Page. Same with the others…
    Hope it will work.

    Thread Starter johnandersson

    (@johnandersson)

    Hi.

    Thx for your reply. You mean somehting like this?

    Pages >>
       Projects
          -Fragment
          -Novels
       About
          -The site
          -John

    I’ve thought of that but thats not the layout I’m looking for. But I’m keeping it as plan B if plan A fails. ??

    Oops, I think I misread your OP.
    Anyway, you could just add
    <li><h2>About</h2>
    <ul>
    <li><a href="https://www.projectjohn.net/?page_id=XX" title="The Site">The Site</a></li>
    <li><a href="https://www.projectjohn.net/?page_id=XX" title="John">John</a></li>
    </ul></li>

    to your sidebar… providing you will not have 100 about Pages ??
    And in the wp_list_pages tag that you have for displaying the “Projects, use the exclude parameter to not show there the 2 about Pages.

    Thread Starter johnandersson

    (@johnandersson)

    Great, cheers mate. I’m out the door 2 seconds after I hit the Send Post button, but I’m gone try it when I get home. I’ll report back later.

    Thread Starter johnandersson

    (@johnandersson)

    Works perfectly. Thank you for the help, much appreciated.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Adding more then one Pages-category.’ is closed to new replies.