I added the company logo upload with file upload custom field and css codes to make it similar as featured images (featured images i removed from listing page also with css)
How can i make the company logo direct to the listing itself, at the moment it just opens up the image in a larger version.
before i used this code:
function modify_geodir_featured_image($post) {
if ($post->geodir_company_logo) {
?>
<a href="<?php the_permalink(); ?>">
<img src="<?php echo $post->geodir_company_logo; ?>" />
</a>
<?php
}
}
add_action('geodir_before_badge_on_image', 'modify_geodir_featured_image');
but it lays on top of the featured images and i cant css target the image as it has no class.
could the listing pages template file be edited to remove function display image large and add href permalink ?