Forum Moderators: coopster
Here is an example, it first checks to see if the call is being made from the category (35 in this case) and if it is the code does nothing, if the article doesn't belong to category 35 it executes.
Is there a more efficient or SAFER way of doing this or is this fine?
<?php
if ( in_category( '35' )) {
// do nothing
} else { echo '<p><b>A welcome message</b>...</p>';
thefunction_torun();
}
?>
I'm concerned that the // do nothing may make a browser choke...