• I”ve got the site completed using wordpress. We had a blog on blogger, and I was having the blog feed to the website via rss. I’m learning SEO, and realized that it is better to have the blog directly ON the site.
    So, I went into the reading section of wordpres admin, set my main page, and set my newsly created “news” page as the post page. I changed the template of the “news” page to alt right sidebar, and added my categories and archive widget.
    From I thought I understaood, the page that i set as post page (news page) is where my posts would go when I posted(blog posts).. Here is that page
    https://escaribbean.com/news The category/archive widgets are there, which is good, but the 2 test posts i added are not there.
    When I click on the top category “caribbean” i can see the posts, but the sidebar widgets are not what i set them to be.

    WHAT am I doing worng? I want the blog posts that are entered to show on the “news page”, and IF you click on the title for the sidebar of that post page to be the same as the main ‘news page”. There is also a section for comments on the “news page” and I have it unchecked for comments when I created that page.

    Thanks in advance:)

Viewing 15 replies - 1 through 15 (of 26 total)
  • Your main posts page will use the index.php template file automatically – not any page template you may have tried to apply.

    Thread Starter zweetpeaz

    (@zweetpeaz)

    Thanks for the reply.
    I changed the index php to call the the alt right sidebar- but it’s not working

    I added this in

    <div id=’right’>
    <?php get_sidebar(‘sidebar-altright’); ?>
    </div>

    Apparently this is not correct ??
    Please help me- or point me inthe correct direction.. I’m still learning.

    The template hierarchy for the Blog Posts Index is this:

    1) home.php
    2) index.php

    (Note: if your Front Page is set to display “Latest Posts”, the front-page.php template file will take precedence over both of thse.)

    So, if you want to have a customized layout for your Blog Posts Index, you need to create/modify the home.php template file.

    If you want to use a specific Page template, I would recommend copying it, and renaming the copy as home.php. Then, make any additional modifications.

    Thread Starter zweetpeaz

    (@zweetpeaz)

    I want all of the pages other than the “news” page to be static pages. I want the ‘news’ page to show latest posts.
    I do not have a home.php file.

    Since the post page pulls from the home.php, then if I create a home.php copying the altrightsidebar.php, that should work, right? The “news” page is the only page that will us the sidebar

    I know I’m probably in the wrong group but if someone could please help me I would so appreciate it.

    I was in WordPress editing my website. I was on the Settings page editing the title of my website. I accidentally changed the original url of the website which had all of the designs to the new website url (I can’t remember exactly what box – forgive me I’m new at this) and now I am unable to get back to settings or even into my WordPress account. Any help and/or does wordpress have a customer support via telephone?

    Link to what happened: https://www.payless4hcgdiet.com/wp-login.php?redirect_to=http%3A%2F%2Fwww.hcgdrops4less.com%2Fwp-admin%2F&reauth=1

    Link to present website: https://www.payless4hcgdiet.com/wp-admin

    The system is not recognizing any of my emails at this time and I’m sure it’s because I did not set up the account with the new website address.

    thank you.

    @zweetpeaz:

    Since the post page pulls from the home.php, then if I create a home.php copying the altrightsidebar.php, that should work, right? The “news” page is the only page that will us the sidebar

    Without seeing the template file, I cannot guarantee 100% that it will work, but it should work.

    @tabbey1: you should start a new Topic. You issue is entirely separate from that of the OP.

    Thank you so much Chip. I just started a new topic. have a great day.

    Thread Starter zweetpeaz

    (@zweetpeaz)

    ok- so i copied the alt right sidebar php onto notepad, saved it as home.php, and uploaded it through ftp to my site files where the rest of the php files are. I did not see a change on the website, and when i looked in the editor, the home.pho file was not there.. sigh.. what do I do?

    Where exactly did you upload home.php?

    The file path should be \wp-content\themes\theme-name\, where theme-name is the slug for your Theme.

    Thread Starter zweetpeaz

    (@zweetpeaz)

    Yup- that’s where i put it. i also just recehecked it.. and that is where it is- well, that is where I see it when I look at the files through ftp

    Did you change the Template Name in the header comments of home.php? If not, you likely have two template files that WordPress sees as having the same Template name.

    Thread Starter zweetpeaz

    (@zweetpeaz)

    well, I hadn’t done that, so i did and uploaded it again. Now, in the idex php, do I have the get sidebar call to the home php i just added?

    Now, in the idex php, do I have the get sidebar call to the home php i just added?

    No. The home.php template file will be used instead of the index.php template file, for the Blog Posts Index.

    Without seeing your home.php template file, I can’t provide any more specific instructions regarding your sidebar.

    Thread Starter zweetpeaz

    (@zweetpeaz)

    well, if you need to see it, here it is
    <?php
    /**
    * Template Name: home
    *
    * A custom page template with a right sidebar and alternate widget area.
    *
    * The “Template Name:” bit above allows this to be selectable
    * from a dropdown menu on the edit page screen.
    *
    */
    get_header(); ?>
    <div class=”right-alt”>
    <div id=”container” class=”wvr-altright”>
    <div id=”content”>
    <?php the_post(); ?>
    <div id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
    <?php if ( is_front_page() ) { ?>
    <h2 class=”entry-title”><?php the_title(); ?></h2>
    <?php } else { ?>
    <h1 class=”entry-title”><?php the_title(); ?></h1>
    <?php } ?>

    <div class=”entry-content”>
    <?php the_content(); ?>
    <?php wp_link_pages( array( ‘before’ => ‘<div class=”page-link”>’ . __( ‘Pages:’, TTW_TRANS ), ‘after’ => ‘</div>’ ) ); ?>
    <?php edit_post_link( __( ‘Edit’, TTW_TRANS ), ‘<span class=”edit-link”>’, ‘</span>’ ); ?>
    </div><!– .entry-content –>
    </div><!– #post-<?php the_ID(); ?> –>
    <?php comments_template( ”, true ); ?>
    </div><!– #content –>
    </div><!– #container altright –>
    </div>
    <?php get_sidebar(‘altright’); ?>
    <?php get_footer(); ?>

    And what, exactly, are you wanting to do?

    If you want to populate the sidebar: do you have a template file named sidebar-altright.php?

    If so: what dynamic sidebar is it calling? Is that dynamic sidebar registered in functions.php?

    If so, then you should be able to go to Dashboard -> Appearance -> Widgets, add Widgets to this sidebar, and then those Widgets should appear on your Blog Posts Index.

Viewing 15 replies - 1 through 15 (of 26 total)
  • The topic ‘wordpress as a website, and a blog?’ is closed to new replies.