Forums

Folder structure and custom page templates *need serious help* (3 posts)

  1. greatdanemaniac
    Member
    Posted 1 year ago #

    Hi!
    I'm writing another post on this one, since the other one didn't get an answer, and bumping is not allowed.

    I really would like to know if there is some way that I can have all of my custom page templates for custom post types stored in another folder within my theme directory?

    Right now, all of them are in the theme directory, and when I'm done with all my CPT's, I will have a total of nearly 50 template files in my folder, and that's just awful!

    I'd like to create a folder called templates, and then put all of my custom templates in there, and then call for them when I create the separate pages that I need for display. Right now that is not working, since I'm unable to locate the file in the drop down menu, when I create pages.

    I've tried all of the location code tags that WP provide, but I'm still not getting the result I need.

    Can somebody help me with this? PLEASE!

  2. vtxyzzy
    Member
    Posted 1 year ago #

    If all you are after is separating the custom templates from the rest of the theme, consider making a child theme.

  3. greatdanemaniac
    Member
    Posted 1 year ago #

    I've already done that, but still it would lead to a lot of template files for my custom post types.

    Isn't there any other way?

Topic Closed

This topic has been closed to new replies.

About this Topic