side bar not showing on custom template pages
-
I have 3-4 pages which use customized templates for outputtin specific category posts, but on these pages teh sidebar code does not show the content, it is because i am missing an include, there is a custom code block in the side bar wich requires a specific fucntion, whic get loaded in the standard tempat but not in my custom templates, but not sure where to set it
side bar code
<div id=”sidebar”>
-
<div id=”pages_nav”>
<div style=”margin-left:25px;”>
<?php if(function_exists(“wp_pages_nav”)) {
wp_pages_nav(“show_all_parents=0&sort_column=menu_order&show_root=0”);
} ?>
</div>
</div></div>
sample template
<?php
/*
Template Name: News – No Events
*/
?><?php get_header(); ?>
<div id=”content” class=”narrowcolumn”>
<?php
$query= ‘cat=-11’; // concatenate the query
query_posts($query); // run the query
?><?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php require(‘post.php’); ?>
<?php endwhile; endif; ?>
<?php edit_post_link(‘Edit this entry.’, ‘<p>’, ‘</p>’); ?>
</div><?php get_sidebar(); ?>
<?php get_footer(); ?>
thanks
- The topic ‘side bar not showing on custom template pages’ is closed to new replies.