• I’m trying to create a directory/folder where I can store files and WordPress pages.

    As an example if I wanted to create any webpages about a topic the url would be like this: example.com/animals/bats. “Animals” would be the folder/directory name.

    If you go to the directly folder url(example.com/animals) you’d see an “index of” page that looks similar to this.

    PS:I thought I had already submitted this question so if I did, and I just can’t find it for some reason let me know and I’ll delete one of the topics.

    • This topic was modified 4 years, 6 months ago by Jan Dembowski.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @concerro,

    1.

    Most files can be easily uploaded through the WordPress admin area.

    Go to your WordPress admin area, you will see an option Media, click on it, there you can store your files and easily use on your website.

    Here are all file types that WordPress currently accepts: https://codex.www.ads-software.com/Uploading_Files

    2.

    For the second question, if you want that format for your Posts:

    You first have to go Settings > Permalinks in your admin area and change the permalink structure to this: https://prnt.sc/se1bal

    In the second step, you need to create a category with name Animal (make sure slug should be also animal) in Posts > Categories section. Screenshot: https://prnt.sc/se1dob

    In the third step, you need to create a post: https://prnt.sc/se1dx7, with slug as bats and in last assign the animal category to it. Like this: https://prnt.sc/se1f7b

    If you want that format on page:

    Create two seperate pages with the slug animals (https://prnt.sc/se1k9s) and bats (https://prnt.sc/se1ker).

    The page name can be anything but slug should be animals and bats.

    You can see I have created both pages page: https://prnt.sc/se1joo

    Now go to Quick Edit option of Bats page (https://prnt.sc/se1mlb) and from the Parents option select Animals, like this: https://prnt.sc/se1i7x.

    After then you will be able to see your page URL like this: https://prnt.sc/se1lwo

    That’s it.

    Add an index.html or index.php file there to get something other than the default ‘index of the empty directory’…

    WordPress won’t use that directory but you can link to resources there within pages, posts, or menus and etc.

    Thread Starter concerro

    (@concerro)

    I don’t mind “animal” showing as an index of page.

    Animesh Gaurav, I want the files to be stored under “Animal”, and I want animal to be part of the url.

    I’ve seen this on other websites.

    Will this be possible with your instructions?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WordPress Directories(folders?)’ is closed to new replies.