• 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

    (@cozmosis)

    Bump ^^

    Thread Starter cozmosis

    (@cozmosis)

    can anyone help? D:

    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

    (@cozmosis)

    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.

    I’d need to see your page and sidebar code to help you…

    -Joe

    Thread Starter cozmosis

    (@cozmosis)

    my sidebar.php is reallllly long

    Thread Starter cozmosis

    (@cozmosis)

    <?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.