WordPress.org

Ready to get started?Download WordPress

Forums

Display Digg sidebar on specific category page? (3 posts)

  1. treelovinhippie
    Member
    Posted 8 years ago #

    hi

    Been fiddling with wordpress today (blix template, in sidebar.php)

    Ok, I have a couple of categories setup so that the links go to "/category/%category%".

    What I want to do is display a digg sidebar ONLY on the page called "technology" (at /category/technology)

    So here's what I've got so far that doesn't work with displaying only on the technology page:

    <?php if (is_page("technology")) { ?>

    <h2><em><a href=http://www.digg.com/users/treelovinhippie>Dugg Stories</a></em></h2>

    <ul class="links">
    <script language="JavaScript" src="http://digg.com/jsdig/15/treelovinhippie" type="text/javascript"></script>
    </ul>

    <h2><em>Calendar</em></h2>

    <?php get_calendar() ?>

    <?php if (!is_page("archives")) { ?>

    <h2><em>Posts by Month</em></h2>

    <ul class="months">
    <?php get_archives('monthly','','','<li>','</li>',''); ?>
    </ul>

    <?php } ?>

    <h2><em>Posts by Category</em></h2>

    <ul class="categories">
    <?php wp_list_cats('sort_column=name&hide_empty=0'); ?>
    </ul>

    <?php } ?>

    cheers
    nathan

  2. treelovinhippie
    Member
    Posted 8 years ago #

    Could this be stuffing things up?:

    <?php if (is_single()) { ?>

    <h2><em>Calendar</em></h2>

    <?php get_calendar() ?>

    <h2><em>Most Recent Posts</em></h2>

    <ul class="posts">
    <?php BX_get_recent_posts($p,10); ?>
    </ul>

    <?php } ?>

    I should mention too that the code in the original post I basically just copied from the standard sidebar code in sidebar.php (blix)

  3. treelovinhippie
    Member
    Posted 8 years ago #

    no one?

Topic Closed

This topic has been closed to new replies.

About this Topic