SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast
    Join Date
    Nov 2007
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to create directories under a WordPress install for categories of pages?

    I didn't quite know how to word the subject of this thread.

    It can get rather confusing given that WordPress uses it's own version of categories (which is not what I am asking about).

    What I am looking to do is create actual directories under my WordPress install (my version of categories) each of which will contain pages (not blog posts) of a particular subject.

    For example I might want to create a directory containing tutorials on WordPress. So I under the mythical domain of www.asdfasdfn.com I would have www.asdfasdfn.com/wordpress/how-to-install/ with "wordpress" being an actual directory and "how-to-install" being a page name in that directory.

    Now I know that I can do this by creating a page called "wordpress" and then making that page the parent of the "how-to-install" page but is there some way to create and use the "wordpress" directory WITHOUT having to create a dummy page to force WordPress to create the directory?

    Anybody?

    Carlos

    PS. That's weird. My original mythical domain was w w w.d o m a i n. c o m which redirected to the domain in question. But now so does my new mythical domain. Hmm...
    Last edited by carlosbcg; Feb 27, 2012 at 19:13. Reason: Oops. Found out my mythical domain actually existed!

  2. #2
    SitePoint Wizard bronze trophy chris.upjohn's Avatar
    Join Date
    Apr 2010
    Location
    Melbourne, AU
    Posts
    2,196
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    The easiest and more manageable way to accomplish this would be to create a custom post type which allows you to set a custom rewrite rule and more, read the following codex documentation and then the register_post_type documentation if it's what your looking for.

    http://codex.wordpress.org/Post_Types
    http://codex.wordpress.org/Function_...ster_post_type

  3. #3
    SitePoint Enthusiast
    Join Date
    Nov 2007
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I read both and it's still not clear John (despite my being very familiar with PHP, CSS, and all manner of other such things). I mean it certainly seems easier to create a dummy page as I mentioned in my original post but I'll read both pages again tomorrow and see if I can make heads or tails of it.

    Thanks for your input!

    Carlos

  4. #4
    SitePoint Wizard bronze trophy chris.upjohn's Avatar
    Join Date
    Apr 2010
    Location
    Melbourne, AU
    Posts
    2,196
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    There is a ton of tutorials on Google that can help you make sense of creating a custom post type https://www.google.com/search?q=cust...ient=firefox-a

  5. #5
    SitePoint Enthusiast
    Join Date
    Nov 2007
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Chris! I don't know why I called you John LOL.

    Carlos


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •