is it possible to have the sidebar appear on only specific blog posts ?

  • Anonymous

    #37853

    ok I understand now. I put the files only that begin with template. but there is another problem, I can select template from dropdown list in my posts sidebar but no changes are reflected on the page.

    Here is an example of how one file looks

    <?php
    /**
    * Template Name Posts: Two columns, sidebar on the left
    *
    * A custom page template with the main content on
    * the right side and one sidebar on the left side.
    *
    * @package Graphene
    * @since Graphene 1.1.5
    */
    get_header(); ?>

    <?php
    /* Run the loop to output the pages.
    * If you want to overload this in a child theme then include a file
    * called loop-page.php and that will be used instead.
    */
    the_post();
    get_template_part( 'loop', 'page' );
    ?>

    <?php get_footer(); ?>

    Anonymous

    #37854

    I decided to use this plugin instead but is this how the template child page should look like? it still does not work

    null

    <?php
    /*
    Single Post Template: [Descriptive Template Name]
    Description: This part is optional, but helpful for describing the Post Template
    */
    ?>
    /**
    <?php
    /**
    * Template Name Posts: New Three columns, sidebars on the right
    *
    * A custom page template with the main content on
    * the left side and one sidebar on the right side.
    *
    * @package Graphene
    * @since Graphene 1.1.5
    */
    get_header(); ?>

    <?php
    /* Run the loop to output the pages.
    * If you want to overload this in a child theme then include a file
    * called loop-page.php and that will be used instead.
    */
    the_post();
    get_template_part( 'loop', 'page' );
    ?>

    <?php get_footer(); ?>

    And I read this

    1.Upload the entire single-post-template folder to the /wp-content/plugins/ directory

    2.Activate the plugin through the ‘Plugins’ menu in WordPress

    3.Create Post Templates in your theme’s folder, as described in Usage

    Does that mean I have to upload the template files to the plugin editor instead of the childtheme?

    Anonymous

    #37855

    fixed thank you

Viewing 3 posts - 11 through 13 (of 13 total)

You must be logged in to reply to this topic.

Do NOT follow this link or you will be banned from the site!