• Hi I have the following code in my Blog (News) page template, but due to some reason it is missing the sidebar, the post title & the comment link. You can see the live page here https://phynyxcarbon.com/news/

    <?php /* Template Name: News */ ?>

    <?php get_header(); ?>
    <section id=”content” role=”main”>
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <h1 class=”entry-title”><?php the_title(); ?></h1> <?php edit_post_link(); ?>
    <?php get_template_part( ‘entry’ ); ?>
    <?php comments_template(); ?>
    <?php endwhile; endif; ?>
    <?php get_template_part( ‘nav’, ‘below’ ); ?>
    </section>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

Viewing 1 replies (of 1 total)
  • ‘news’ seems to be set as the ‘blog page’;
    this page does not use a page template, it uses index.php or home.php

    https://codex.www.ads-software.com/Creating_a_Static_Front_Page

    Create a Blog Page: If choosing to add a blog, choose Add New Page again.
    Title it “Blog,” “News,” “Articles,” or an appropriate name.
    Do not use a custom Page template for this page. The template files home.php or index.php will be used to generate this page in the Theme.

Viewing 1 replies (of 1 total)
  • The topic ‘No title sidebar WordPress Blog page’ is closed to new replies.