• I have a WordPress 2.0 blog and I have added the Simple Asides plugin (https://www.mikexstudios.com/simple-asides/).

    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:

    IF CATEGORY DOESN’T EQUAL “ASIDES”
    Then continue with the regular postmetadata

    IF CATEGORY EQUALS “ASIDES”
    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=https://www.insidethecbc.com/uploads/icon_email.jpg width=15 height=12 border=0 /> Email This’, ‘Email This’); } ?>

      

    <?php if(function_exists(‘wp_print’)) { print_link(‘<img
    src=https://www.insidethecbc.com/uploads/icon_print.jpg 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’) { ?>
    and
    <?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.