Hi Tim, I guess I understand your problem
In your old thread you mentioned like this.
I’d like the 2nd link to be conditionally visible like the default in the event that the listing doesn’t have an email assigned to it.
Thats why i given this code.
global $post;
if (!isset($post->geodir_email) || empty($post->geodir_email)) {
?>
<a href="javascript:void(1);" class="b_send_inquiry2" onclick="jQuery( '.b_send_inquiry' ).click();">Send Enquiry</a>
<?php
}
Which means that link would display only when the Email field not filled. If you want to do the exact opposite (when email filled)
you need to replace this line
if (!isset($post->geodir_email) || empty($post->geodir_email)) {
with
if (isset($post->geodir_email) && !empty($post->geodir_email)) {
Hope that helps.