Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter inextricabledesign

    (@inextricabledesign)

    I solved it without calling the actual sidebar.php file i had there and just calling the each sidebar directly with:

    <?php include(TEMPLATEPATH.'/sidebar_left.php');?>
    
    <?php include(TEMPLATEPATH.'/sidebar_right.php');?>

    On the DIV i wanted to call it. I’m not a PHP expert at all, I just saw how it was done on a 3 column theme I installed for a moment on my wordpress site.

    Hope this helps anyone else out there that had this same problem.

    Hello, I’m pretty new to WordPress and I’m having some issues displaying 2 sidebars as well, I think my main problem is that I’m not sure where to set which page is the home page, My homepage right now will be the index but i wanted to see If someone would check out my code and point me in the right direction, so far I think I did the same as MagicalWonders and Buddha Trance but not quite sure where I’m going Wrong. Cheers and Many Thanks, here is my code.

    index.php

    <?php get_header(); ?>
        <div id="sub_container">
                <?php get_sidebar(); ?>
        	<div id="sub_main">
                <div id="sub_main_pic_top"></div>
            	<div id="sub_main_pic">
                	<img src="wp-content/themes/whiteboard/images/xsub_main_01.jpg" alt="Main Chapter Image" />
                </div>
                <div id="sub_main_pic_bott"></div>
            	<h3 id="titl_seven">Seven Extraordinary Things</h3>
                <div id="sub_main_curv_top"></div>
                <div id="sub_main_mid">
                	<h3>Welcome</h3>
                    <p>Seven Extraordinary Things is free online graphic novel written and illustrated by <a href="#">Doug Lefler</a>. New panels are added daily. If you miss any, go to <a href="#">Chapters</a>. If you want to get an idea where the story is headed, who is in it, or where it all takes place, check out <a href="#">Gallery</a>, <a href="#">Characters</a> and <a href="#">Locations</a>. If you’re curious what the Seven Extraordinary Things are, they can be found on <a href="#">The List</a>.</p>
              </div>
                <div id="sub_main_curv_bott"></div>
                <div id="sub_main_curv_top_out"></div>
                <div id="sub_main_mid_bg">
    <!-- POST INFORMATION -->
    <div class="post">
     <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
     <h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
     <p>Written on <?php the_time('F j, Y'); ?> at <?php the_time() ?>, by <?php the_author() ?></p>
    
     <?php the_content(__('Read more'));?>
    
     <div class="postmeta">
      <p><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></p>
      <p>Category <?php the_category(', ') ?> | Tags: <?php the_tags(' ', ',', ' '); ?></p>
     </div><!-- end .postmeta -->
    
     <?php endwhile; else: ?>
      <p><strong>There has been a glitch in the Matrix.</strong><br />
      There is nothing to see here.</p>
      <p>Please try somewhere else.</p>
     <?php endif; ?>
    
     <div class="postnavigation">
      <p><?php next_posts_link('&laquo; Older Entries') ?><?php previous_posts_link(' | Newer Entries &raquo;') ?></p>
     </div> <!-- end .postnavigation -->
    
    </div> <!-- end .post -->
                </div>
                <div id="sub_main_curv_bott_out"></div>
            </div>
                <?php get_sidebar(); ?>
        </div>
    <?php get_footer(); ?>

    sidebar.php

    <?php if ( is_home() ) { ?>
    <?php include(TEMPLATEPATH.'/sidebar_left.php');?>
    <?php } else { ?>
    <?php get_sidebar(); ?>
    <?php } ?>

    sidebar_left.php

    <div id="sub_sidebar_left">
            	<h3 id="titl_chapters">Chapters</h3>
            		<ul>
                		<li><a id="chapter_01" title="Chapter 01" href="https://www.sevenextraordinarythings.com/">Chapter 01</a></li>
                		<li><a id="chapter_02" title="Chapter 02" href="https://www.sevenextraordinarythings.com/">Chapter 02</a></li>
                		<li><a id="chapter_03" title="Chapter 03" href="https://www.sevenextraordinarythings.com/">Chapter 03</a></li>
                		<li><a id="chapter_04" title="Chapter 04" href="https://www.sevenextraordinarythings.com/">Chapter 04</a></li>
                	</ul>
            	<div id="sub_sidebar_bott"></div>
            </div>

    sidebar_right.php

    <div id="sub_sidebar_right">
            	<h3 id="titl_characters">Characters</h3>
    		<ul>
                		<li><a id="character_01" title="Greg" href="https://www.sevenextraordinarythings.com/">Greg</a></li>
                		<li><a id="character_02" title="Claire" href="https://www.sevenextraordinarythings.com/">Claire</a></li>
                		<li><a id="character_03" title="Nina" href="https://www.sevenextraordinarythings.com/">Nina</a></li>
                		<li><a id="character_04" title="Harlan" href="https://www.sevenextraordinarythings.com/">Harlan</a></li>
                		<li><a id="character_05" title="Janis" href="https://www.sevenextraordinarythings.com/">Janis</a></li>
                		<li><a id="character_06" title="Minor" href="https://www.sevenextraordinarythings.com/">Minor</a></li>
                		<li><a id="character_07" title="Sheppard" href="https://www.sevenextraordinarythings.com/">Sheppard</a></li>
                		<li><a id="character_08" title="Ken" href="https://www.sevenextraordinarythings.com/">Ken</a></li>
                    </ul>
            	<div id="sub_sidebar_bott"></div>
            </div>

    Any help is greatly appreciated

Viewing 2 replies - 1 through 2 (of 2 total)