Forums

[resolved] Created New Page Template, Yet Default is Still the Only One Available (5 posts)

  1. ruthiepearl
    Member
    Posted 3 years ago #

    I have my website set up using WordPress as a CMS (www.ruthiepearl.com). In reading settings, I have it set so that it goes to a page titled "home" when you go to ruthiepearl.com, and then posts go to a page calleld "blog." I set it up this way so that all the pages on my site would be static except for the "blog" page.

    I'm not sure if any of the above matters, but I wanted to give some background...Anyway...

    I have the default page template set so that no comments, author info, etc. show up when it is used. I created a new template called "blog.php" to use for the blog page so these items will be displayed. I loaded it into the theme folder in my file manager, but I am unable to select this template as the basis for my "blog" page. The only option I am allowed in "Edit Pages" is the default template.

    Can anyone offer any suggestions?

  2. MichaelH
    Volunteer
    Posted 3 years ago #

    Assuming that your page template does in fact have a proper structure such as

    <?php
    /**
     * @package WordPress
     * @subpackage Default_Theme
     */
    
    /*
    Template Name: YourTemplateNameHere
    */
    ?>

    Then try switching to the WordPress Default theme then switch back to your theme.

  3. ruthiepearl
    Member
    Posted 3 years ago #

    That did fix the problem of not having the option of selecting "blog" as a template in the drop-down menu in the "Edit Pages" area of WordPress.

    However, the changes aren't being reflected in my live page. It still appears to be running off the same code as the other pages in my site. I am still confused about how to fix this...other ideas?

  4. ruthiepearl
    Member
    Posted 3 years ago #

    Note: I just went into settings and tried switching it back to the default where posts show up on the main page. This made my blog page show up the way that the blog template is coded.

    But this creates a new problem--I don't want the location of my posts to be my default home page...

  5. ruthiepearl
    Member
    Posted 3 years ago #

    I fixed it. You got me started on the right path--thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic