WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Custom Post Template] Template Help

[Plugin: Custom Post Template] Template Help

  • wp–fan

    @wp-fan-1

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Simon Wheatley

    @simonwheatley

    Code for the People

    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.

    wp–fan

    @wp-fan-1

    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!!!

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Custom Post Template] Template Help’ is closed to new replies.