Support » Plugins » If category DOES NOT EQUAL “Asides…”

  • todmaffin


    I have a WordPress 2.0 blog and I have added the Simple Asides plugin (

    The plugin works fine, but I’m having problems trying to figure out how to prevent the WordPress loop from displaying the “Email/Print” icons I have at the bottom of each post generated from index.php.

    What I’m hoping for, is some PHP code that basically performs this function:

    Then continue with the regular postmetadata

    Then do not display the following postemeta data

    Here is the actual code in my template:

    <p class="postmetadata_right">

    <?php edit_post_link(‘Edit ‘, ”, ”); ?>

    <?php if(function_exists(‘wp_email’)) { email_popup(‘<img
    src= width=15 height=12 border=0 /> Email This’, ‘Email This’); } ?>


    <?php if(function_exists(‘wp_print’)) { print_link(‘<img
    src= border=0 />Print This’, ‘Print This’); } ?>

    How can I have WordPress ignore the postmetadata information on posts that are in the Asides category?

    Someone suggested I wrap the postmetadata in:<br />
    <?php if (the_category()!=’Asides’) { ?>
    <?php } ?>`
    …but WordPress ignored it and displayed the postmetadata for a post with the Asides category anyway.

    Help! 🙂

  • The topic ‘If category DOES NOT EQUAL “Asides…”’ is closed to new replies.