Support » Fixing WordPress » Dual Loops? Having trouble with categories hackery

  • Hi all,

    I’ve tried helping myself for the last 2 hours or so, but am not making any real progress.

    1. SUCCESS: I am trying to display 1 category of posts only in my main content area. I got this working via the Codex examples. I am doing this just before The Loop:

    <?php
       if (is_home()) {
          query_posts("category_name=Announcements");
       }
    ?>

    2. FAILURE: I am trying to display 1 (different than above) category of posts in my sidebar (it’s big). I have tried adding another “Loop” to my sidebar.php, but strange things are happening. What is the proper way to do this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Holy cow this forum moves fast.

    I figured this out, and it was esoteric and related to my specific code, so explaining the solution is not really worth much.

    vkaryl

    (@vkaryl)

    Well, it might be…. you never know. But in any case, please mark this resolved, thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Dual Loops? Having trouble with categories hackery’ is closed to new replies.