WordPress.org

Ready to get started?Download WordPress

Forums

Single Post Template
Plugin won't work with a default single post template!!!! (4 posts)

  1. Ahjort
    Member
    Posted 1 year ago #

    As the title says a default single post template is not possible to have. I would like to add the:

    <?php
    /*
    Single Post Template: Default
    */
    ?>

    to my single.php file but that doesn't do the trick. And it can't be that I have to go through all of my posts to select the single.php from the template select dropdown.

    What do I do?!?!

    http://wordpress.org/extend/plugins/single-post-template/

  2. Tom
    Member
    Posted 1 year ago #

    You don't need to add that to the default post template as it automatically uses single.php

    It's important to note that the current version of this plugin is broken. Download version 1.3 and use that instead, it should fix your problem.

  3. Ahjort
    Member
    Posted 1 year ago #

    I have now removed the new version and installed the 1.3. But that version doesn't have the template selection in the post backend.. hmm.

  4. Tom
    Member
    Posted 1 year ago #

    For the default post template you don't need to add:

    <?php
    /*
    Single Post Template: Default
    */
    ?>

    ...because WordPress automatically looks for, and uses single.php.

    For the template selection widget to appear in the back-end you need to have an alternative post template, in which you do need to define the template name:

    <?php
    /*
    Single Post Template: YOUR TEMPLATE NAME
    */
    get_header(); ?>

    If you only have the default post template in your theme folder (no alternative templates) the template selection widget won't appear in the back-end

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.