Hi Tim,
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.
You have to wrap paolo code inside an if check like this
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
}
Also, for the enquiry form itself, I’d like to use a different form entirely. Would it be better to create a different form template file or update the existing to accommodate the desired fields/content and by chance is it possible to integrate something like contact form 7 into this?
This is not possible without hiring a developer. You can reference this code if you wanna link send enquiry button to another page.
https://wpgeodirectory.com/support/topic/listing-detail-author-link/#post-361147
Thanks