WordPress.org

Ready to get started?Download WordPress

Forums

defining a "directory structure" for a page collection (3 posts)

  1. cjraven
    Member
    Posted 5 years ago #

    WP 2.7
    I'm putting together a Glossary which began life as a single page, and now needs to be split up into 27 pages (#0-9 + a-z) to improve load times. The problem is this;
    1. Calling the single page "glossary" gives a nice easy URL: http://www.domain.tld/glossary. Perfect.
    2. That's great, but splitting the pages gives an unfortunate URL which - of course (using the letter a as an example) produces http://www.domain.tld/a
    which isn't great.

    What I'm trying to figure out how to do is to have the URL for all pages - that are glossary pages - read like this; http://www.domain.tld/glossary/a (or b or whatever letter the visitor wants)Meaning...all pages are below "glossary"

    If this wasn't wordpress, but "just another website" I'd create a directory, stash some pages in there, and call 'em http://www.domain.tld/glossary/whatever_letter but....that obviously won't work here.
    How on earth do I go about doing this - for that matter, is it even possible?

    Regards & HTH
    -Me

  2. stvwlf
    Member
    Posted 5 years ago #

    Hi

    You should turn the sub-pages of the top level glossary page into child pages of the main Glossary page.

    In the wordpress post editor, there is a section beneath (or next to if you are using 2.7) called Page Parent. For each of your sub-pages, set the parent page to the glossary page. Then your URL's will be exactly as you want, http://www.domain.tld/glossary/a

  3. cjraven
    Member
    Posted 5 years ago #

    ACE! COOL! TREMENDOUS! YAY! (etc)
    A cascading multitude of effusive and "totally-over-the-top" thanks!
    Topic is duly marked as "resolved" in accordance with forum guidelines.
    -Me

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.