WordPress.org

Ready to get started?Download WordPress

Forums

Custom Post Template
Template Help (4 posts)

  1. wp--fan
    Member
    Posted 3 years ago #

    We all know that single.php is in the wp-content/themes/THEMENAME folder with THEMENAME being the theme you are using.

    When we go to make post templates for this plugin, we have to put them in wp-content/themes/THEMENAME

    My question is how can I put extra templates that I make into a separate folder so that WordPress can find them? So something like single-EXTRA.php is in wp-content/themes/THEMENAME/NEWFOLDER

    I want to do this because my theme directory gets cluttered with all of the extra template files I have created.

    Help would be much appreciated in this manner.

    Thank you
    WP--Fan

  2. Simon Wheatley
    Code for the People
    Plugin Author

    Posted 3 years ago #

    Unfortunately this isn't possible with the current version of the plugin... I'm always happy for people to sponsor development of new features though! Feel free to drop me a line.

  3. wp--fan
    Member
    Posted 3 years ago #

    thanks for the reply!

    i would sponsor to support your awesome work but my blog does not generate me $$$ to do so. hopefully it will be a feature in the future!!!

  4. dotnature
    Member
    Posted 3 years ago #

    one way to do this is to use a child theme, it works fine with this plug-in, just look at the docs for child themes, iot takes about 5 minutes to set up.

    basically make a folder in your themes /whatever

    add a style.css to it with the following tag at in the style header

    Template: twentyten ( this is tthe name of your parent theme)

    enable child theme in your "themes"

    add any .php files to your new folder and the child wordpress looks in there before it looks into the parent theme folder.

    my child theme folder for this plug-in simply has:

    style.css
    single-test.php
    single-test2.php

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic