• Okay. I have wordpress setup with a theme. I have it in the layout I want on the index Page. I have created content for the Page and that will show up, just not the sidebar, but it will on my index page.
    My Page.php is:

    <?php include(‘header.php’); ?>
    <div id=”container”>
    <?php include(‘sidebar.php’); ?>
    <div id=”topcontentdouble”></div>
    <div id=”content”>
    <div class=”contentright”>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class=”post”>
    <div class=”title” id=”post-<?php the_ID(); ?>”>
    ” rel=”bookmark”>
    <?php the_title(); ?>

    </div>
    <div class=”storycontent”>
    <?php the_content(__(‘(Continue reading…)’)); ?>
    </div>
    <!–<?php trackback_rdf(); ?> –>
    </div> <!– Closes the post div–>
    <?php endwhile; else: ?>
    <?php _e(‘Sorry, no posts matched your criteria.’); ?>
    <?php endif; ?>
    <div class=”postnavigation”>
    <div class=”rightdouble”>
    <?php posts_nav_link(”,”,’previous posts + ??’) ?>
    </div>
    <div class=”leftdouble”>
    <?php posts_nav_link(”,’?? + newer posts ‘,”) ?>
    </div>
    </div>
    </div> <!– Closes the contentright div–>
    </div> <!– Closes the content div–>
    <div id=”bottomcontentdouble”>
    </div>
    </div> <!– Closes the container div–>
    <?php include(‘footer.php’); ?>`

    If you want to see what the page looks like it is up at https://www.xamox.net/kkyoga/
    If you click on “Brief History” you will see what I mean when I say that the sidebar is not loading. Any help would be greatly appreciated.

    -xamox

Viewing 2 replies - 1 through 2 (of 2 total)
  • you have to create a new php file, called page.php
    in this file you can put the code you posted above and this should work.
    but change the “include” in “get” and see what happens. in my case it worked, had the same problem – for example a <?php include(‘footer.php’); ?> is getting a <?php get_footer(); ?>

    good luck

    Thread Starter xamox

    (@xamox)

    Yeah, I do have my stuff in page.php, in the template directory. I tried the <?php get_sidebar();?> but that didn’t work either. Thanks for the help though.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sidebar will not display on on Page but will on index.’ is closed to new replies.