Google Answers Logo
View Question
 
Q: Simple PHP/Wordpress tweak needed ( No Answer,   0 Comments )
Question  
Subject: Simple PHP/Wordpress tweak needed
Category: Computers > Programming
Asked by: rservice-ga
List Price: $40.00
Posted: 26 Jul 2006 10:11 PDT
Expires: 26 Jul 2006 11:49 PDT
Question ID: 749756
I have a Wordpress 2.0 blog and I have added the Simple Asides plugin
(http://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=http://www.insidethecbc.com/uploads/icon_email.jpg width=15
height=12 border=0 /> Email This', 'Email This'); } ?>

&nbsp;&nbsp;

<?php if(function_exists('wp_print')) { print_link('<img
src=http://www.insidethecbc.com/uploads/icon_print.jpg border=0 />
Print This', 'Print This'); } ?>

</p>

How can I have Wordpress ignore the postmetadata information on posts
that are in the Asides category?
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy