WordPress.org

Ready to get started?Download WordPress

Forums

Asides in Sidebar Broke (10 posts)

  1. evenglen
    Member
    Posted 6 years ago #

    I had this code, which I got from the codex for asides posts:

    <ul class="sideblog">
    						<?php $my_query = new WP_Query('category_name=noteworthy&showposts=3');  while ($my_query->have_posts()) : $my_query->the_post();  $do_not_duplicate = $post->ID; ?>
    						<li><?php the_excerpt(); ?>
    						<small><a href="<?php the_permalink(); ?>">Permalink</a> — <?php comments_popup_link(__('No Opinions'), __('1 Opinion'), __('% Opinions')); ?><?php edit_post_link('Edit', ' — '); ?></small></li>
    						<?php endwhile; ?>
    					</ul>

    It worked fine in 2.2.3. But when I upgraded to 2.3.3 it stopped showing my posts. I don't get errors, its just empty.

    Can someone help me out?

  2. evenglen
    Member
    Posted 6 years ago #

    no one?

  3. evenglen
    Member
    Posted 6 years ago #

    awww c'mon! i know someone knows the secret!

  4. xdesi
    Member
    Posted 6 years ago #

    Not sure never used it myself, maybe try changing it from category name to category id and specifying an id instead of the name.

  5. evenglen
    Member
    Posted 6 years ago #

    oh yay that worked. thank you so much!

    ok well it worked but it's not getting the category i want it to.

  6. evenglen
    Member
    Posted 6 years ago #

    *bump*

  7. evenglen
    Member
    Posted 6 years ago #

    *bump* again!

  8. boober
    Member
    Posted 6 years ago #

    it worked but with the wrong category? then the category ID you put in is wrong. put in the correct ID. i dont get what the issue is.

  9. evenglen
    Member
    Posted 6 years ago #

    it brought up the personal category instead of the asides one.

  10. evenglen
    Member
    Posted 6 years ago #

    *bump*

Topic Closed

This topic has been closed to new replies.

About this Topic