Title: Dynamic Sidebar Problem
Last modified: August 19, 2016

---

# Dynamic Sidebar Problem

 *  [cozmosis](https://wordpress.org/support/users/cozmosis/)
 * (@cozmosis)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/dynamic-sidebar-problem/)
 * Ok well I recently started using a dynamic sidebar, but it’s not widgetized.
 * Sorry if this sounds stupid/or has already been discussed, but I really need 
   to figure this out >_<!
    Ok well, I’ve made different sidebars for my three main
   categories (and other main files home/single/page etc) but whenever I post on
   my homepage what ever the post is categorized as appears under the home sidebar..
   Which I don’t want. Is there any kind of exclude code? `<?php } ?> or <?php endif;?
   >` don’t appear to be stopping anything.
 * My apologies if this is totally stupid !

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

 *  Thread Starter [cozmosis](https://wordpress.org/support/users/cozmosis/)
 * (@cozmosis)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/dynamic-sidebar-problem/#post-1208333)
 * Bump ^^
 *  Thread Starter [cozmosis](https://wordpress.org/support/users/cozmosis/)
 * (@cozmosis)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/dynamic-sidebar-problem/#post-1208437)
 * can anyone help? D:
 *  [jmsearcy](https://wordpress.org/support/users/jmsearcy/)
 * (@jmsearcy)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/dynamic-sidebar-problem/#post-1208440)
 * If I had to guess, it sounds like you have some PHP in your sidebar listing categories.
   Look for something similar to this in your sidebars source code:
 * `<?php wp_list_categories( $args ); ?>`
 * If you can’t find anything like this, seeing your code would help track down 
   where the problem is coming from, also a URL to your site.
 * -Joe
 *  Thread Starter [cozmosis](https://wordpress.org/support/users/cozmosis/)
 * (@cozmosis)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/dynamic-sidebar-problem/#post-1208441)
 * My home sidebar doesn’t contain any category include code, but because I have
   set sidebars for my categories they show up on my homepage when I post something
   relevant to said category.
 *  [jmsearcy](https://wordpress.org/support/users/jmsearcy/)
 * (@jmsearcy)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/dynamic-sidebar-problem/#post-1208499)
 * I’d need to see your page and sidebar code to help you…
 * -Joe
 *  Thread Starter [cozmosis](https://wordpress.org/support/users/cozmosis/)
 * (@cozmosis)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/dynamic-sidebar-problem/#post-1208505)
 * my sidebar.php is reallllly long
 *  Thread Starter [cozmosis](https://wordpress.org/support/users/cozmosis/)
 * (@cozmosis)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/dynamic-sidebar-problem/#post-1208506)
 * > <?php get_header(); ?>
   > <style type=”text/css”>
   >  p { margin:0; } </style>
   > <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
   >  <div class
   > =”post” id=”post-<?php the_ID(); ?>”> <h1><?php the_title(); ?></h1> <div class
   > =”entry”> <?php the_content(); ?> <?php wp_link_pages(array(‘before’ => ‘<p
   > >**Pages:** ‘, ‘after’ => ‘</p>’, ‘next_or_number’ => ‘number’)); ?> </div>
   > </div>
   > <?php edit_post_link(‘Edit this entry.’, ‘<p>’, ‘</p>’); ?>
   > <?php comments_template(); ?>
   > <?php endwhile; ?>
   > <?php else : ?>
   >  <h1>Not Found</h1> <p>Sorry, but the page you requested cannot
   > be found. If you feel this is an error, let me know.</p>
   > <?php endif; ?>
   > <?php get_footer(); ?>
 * that’s my page.php

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

The topic ‘Dynamic Sidebar Problem’ is closed to new replies.

## Tags

 * [categories](https://wordpress.org/support/topic-tag/categories/)
 * [dynamic sidebar](https://wordpress.org/support/topic-tag/dynamic-sidebar/)
 * [problem](https://wordpress.org/support/topic-tag/problem/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 2 participants
 * Last reply from: [cozmosis](https://wordpress.org/support/users/cozmosis/)
 * Last activity: [16 years, 7 months ago](https://wordpress.org/support/topic/dynamic-sidebar-problem/#post-1208506)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
