Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter marros166

    (@marros166)

    Well that certainly makes things easier. That plugin will be great for some other things I had planned to do on my other sidebar. Thanks!

    Unfortunately neither that plugin nor any other I’ve seen seem to be able to do what I’m trying for on my left sidebar. Anyone else have any thoughts on the code?

    Thread Starter marros166

    (@marros166)

    Ok, getting closer

    <?php if (have_posts()) : ?>
    <?php $temp_query = $wp_query; ?>
    <?php query_posts('showposts=10'); ?>
    <?php while (have_posts()) : the_post(); ?>
    <li>
    <a href="<?php the_permalink() ?>"><?php the_title() ?></a>
    <?php $category = get_the_category(); echo $category[0]->cat_name; ?>
    </li>
    <?php endwhile; ?>
    <?php $wp_query = $temp_query; ?>
    <?php endif; ?>

    That works to display the first category next to the link and the $temp_query trick works to keep from screwing up the loop for the main page. How would I go about making the category display only three specific categories though? I tried going to my category page and noting the ID number to inset into my code, but that doesn’t work.

    Thread Starter marros166

    (@marros166)

    Do you know of a better way to go about it then? Can I use a get_the_category to assign a variable and then call that variable within the wp_get_archives?

    Thread Starter marros166

    (@marros166)

    Oh yeah sorry, I have that, but I left it out of my post. After that I have:

    <?php endwhile; endif; ?>

    Thread Starter marros166

    (@marros166)

    I figured out that the problem was caused by some screwy code in my left sidebar. I tried to post it here, but the markup was making it unreadable.

    Thread Starter marros166

    (@marros166)

    Thanks for the reply. The theme’s folder and css file have the same name. I’m able to select the theme fine and my index page loads without issue. The problems occur when I try to navigate away from the index to any other page. For example, in my sidebar, I have a list of the 10 most recent posts. If I’m using my modified theme, clicking any of those 10 links just brings me to the same index page, but with the link’s name in the title bar. If I load the default or unmodified theme, the links function properly.

    I’ve compared the index.php, single.php, and page.php from my modified theme and the unmodified theme, but there are no queries or anything that’s different between the two that should be causing issues. The only thing I’ve really been modifying at this point is my style sheet.

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