WordPress.org

Ready to get started?Download WordPress

Forums

multiple loops using asides hack (1 post)

  1. seldomstatic
    Member
    Posted 9 years ago #

    I'm using the "asides" hack which throws the following into the "loop":
    ==============================================
    <?php if (in_category(33) && !$single) { ?>
    <ul class="asides">
    <li id="p<?php the_ID(); ?>"><?php echo wptexturize($post->post_content); echo ' '; comments_popup_link('(0)', '(1)', '(%)')?> <?php edit_post_link('(e)'); ?>

  2. <?php } else { ?>
    ==============================================

    In addition, I want to exclude specific category posts from the index(home) page using the "Exclude Posts From Some Category" as seen here:

    http://codex.wordpress.org/The_Loop#Exclude_Posts_From_Some_Category

    How do I get these two hacks to the loop to work together? I figure it requires multiple post loops in a template but I don't understand how it works.

    Thanks,

    -SS

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.