Forums

Dynamic Sidebar Problem (8 posts)

  1. cozmosis
    Member
    Posted 2 years ago #

    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 !

  2. cozmosis
    Member
    Posted 2 years ago #

    Bump ^^

  3. cozmosis
    Member
    Posted 2 years ago #

    can anyone help? D:

  4. jmsearcy
    Member
    Posted 2 years ago #

    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

  5. cozmosis
    Member
    Posted 2 years ago #

    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.

  6. jmsearcy
    Member
    Posted 2 years ago #

    I'd need to see your page and sidebar code to help you...

    -Joe

  7. cozmosis
    Member
    Posted 2 years ago #

    my sidebar.php is reallllly long

  8. cozmosis
    Member
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic