Viewing 5 replies - 1 through 5 (of 5 total)
  • The page templates and the URL folder structure do not work together and are not the same thing.

    To have your pages in “folders” you need to set the parents for each page, and then they will be set as a child page, and the URL’s will show the way that you want them to. The way to see this is look at the pages list in the admin area. The way that they are set out there is what you’ll see in the URL’s when you publish the site.

    Also, take the template files out of the folders. They should be in the bottom-level folder of your theme (no folders).

    Thread Starter rflfn

    (@rflfn)

    Thanks for your answer catacaustic

    Ok, it is because I intend to create multiple custom pages, and when put the site online already be all set, it’s not cool to have to put the site online to start working on it from scratch publishing all again. Also it is not cool to have more than 30 custom-pages in the same folder with different subjects, it leaves a big mess …

    I’m currently using the plugin “allow php in posts and pages” and using include pages published indicating the path of the file in the subfolder, so I could be more organized, but it certainly is not the right way to work …

    Any suggestions for this?

    it is not cool to have more than 30 custom-pages in the same folder

    WordPress doesn’t use folders to store Pages. They are all stored in your database – so there is zero “mess”.

    Thread Starter rflfn

    (@rflfn)

    it is not cool to have more than 30 custom-pages on the root folder (template folder)

    I do not know if you understand me, is a site that I have no intention of changing the template, I put some themes and other software that I do, so he’ll have plenty customized pages and different formats, so I want to leave all ready instead of publish the site and start posting them and formating one by one.

    This is the reason I’m using custom-pages to get everything ready, but the theme directory will get a little messy as the pages are increasing, this is reason for i want put the custom-pages inside folders.

    Sorry, but you don’t seem to understand the way that templates work in WordPress.

    You do not use folders for templates. I’ll repeat that… You do not use folders for templates.

    Any folders in the theme will hide your templates, and they will not work as standard templates. All template files are stored in the root directory of your theme. Repeating, there are no folders.

    If you have pages that are set up now, and you don’t wnat to change them and you don’t want them to be managed in the WordPress admin area, then you need to put these folders in the home directory of your hosting account, not in the theme folder. These will be seen as they are now, but they will not be managed or editable through the WordPress admin area.

    The “folders” that you see in the URL do not exist. They are virtual pointers that are used only to specify which page hierarchy is needed for the page that’s been requested so that the system can read the right page from the database The page structure is set up in your admin area, not in the hosting accounts file structure. This is all done through the main index.php file in the root directory. There’s no folders for content, and no folders that create URL’s or hold pages in WordPress.

    You can set up a demo or development site and get it ready there, and them move it over to the live site. That’s what most good devleopers do, and it makes life a lot easier with no development on the live site.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Is possible use custom page inside folders?’ is closed to new replies.