WordPress.org

Support

Support » How-To and Troubleshooting » How do I list certain pages under certain names?

How do I list certain pages under certain names?

  • Megagents

    @megagents

    I was reading how you can list pages with ID numbers but is there a way you could list pages with certain names? I haven’t seen anything that says you can but there must be some way you can, right?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Megagents

    @megagents

    Bump.

    Chris_K

    @handysolo

    I wish you wouldn’t bump so soon. it’s really rather rude.

    Have you visited Options -> Permalinks? Check out the Permalinks page to read up on them.

    peiqinglong

    @peiqinglong

    What do you mean list pages with certain names? you either do it via page id or pretty url.

    Megagents

    @megagents

    In the sidebar when you put <h2>Something</h2> it appears in your sidebar. I was wondering how I could you make it so certain pages disply under them.

    Example

    <h2>Categorie</h2>
    sports
    drama
    action

    <h2>Links</h2>
    food sites
    computer sites
    tv schedules

    See what I mean? Those things listed are pages but they aren’t in the same place in the sidebar.

    Megagents

    @megagents

    I want my sidebar to look like this

    Child Safety
    page1
    page2
    page3

    Games
    page4
    page5
    page6

    Magazines
    page7
    page8
    page9

    Notice how they’re all pages yet they aren’t under the same heading? Normally it would be:

    Pages
    page1
    page2
    page3
    page4
    page5
    page6
    page7
    page8
    page9

    See? How do I separate them?

    You need a lot of manual code for that – there is no WP template tag that would do that.

    Jeremy Clark

    @jeremyclark13

    Member

    What about using subpages. Just make the bold heading a parent page, and all the pages underneath subpages of that page. Then for each parent page you could just list all the child pages of that so called category.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How do I list certain pages under certain names?’ is closed to new replies.