• Hello There…

    I wanna know something..

    For example… If I wanna create a personalized template for some subpage, I gotta create that and name it category-2.php … than I put a link to category-2.php to go to this page…

    But if I label each link of my menu as a category…
    then category-1.php(to show contents of the link mathematic)… category-2.php.(to show contents of the link chemistry)..category-3.php. and so on.. I’ll have too many categories file at the same directory… I Think there’s not another way to call these pages without naming it category-(a number).php..

    all these files categories are at the same folder…(the root folder of my theme) and I wanna know if is it possible to create a folder for this categories putting them there..

    Because actually.. I just can use these categories file.. if they are in the root folder of my theme.. if I put these files inside a folder called “mathematic”..and another categories file inside a folder “chemistry” I can’t use these files..

    I don’t know if I’m being clear, english isn’t my language…..But if you can.. help me with this thing..

    thank you..

Viewing 1 replies (of 1 total)
  • There is nothing wrong with your English.
    However – everything is wrong with your thinking.

    You should be careful when using the word “page”. Pages are something special in WordPress, so better don’t use it if you are talking about categories.

    For example… If I wanna create a personalized template for some subpage,

    – then create Page templates > see the link above

    I gotta create that and name it category-2.php …
    – that’s a category template (see: Category_Templates) and cannot be used with Pages or subPages.

    than I put a link to category-2.php to go to this page…
    – wrong! You can never link directly to any template file!

    So, don’t tell me how do you want to do things (obviously, that’s not working!)
    Tell us what do you want to do, what is the end-result you want – and we will tell you how to do it. OK?

Viewing 1 replies (of 1 total)

The topic ‘Categories’ is closed to new replies.