Listing page edit
I am a newbie to php and have been trying to make an edit to the single listing page.
I would like to display some HTML code when there are no custom fields added and the custom fields are empty. I would like to achieve this by executing the PHP else or elseif statement, I think this is the code to edit.
Code:
<div class="listing-fields">
<?php va_the_files_list(); ?>
<?php the_listing_fields(); ?>
</div>
All I want to achieve is to display HTML if the files list if the listing fields are empty.
example:
When I use the listing importer and the custom fields are blank, i want to display text and image using HTML, when the listing has been claimed and the owner adds data to the custom fields, the HTML will not show. I assume it is possible to edit the above code on the single-listing.php page with an elseif statement.
Please, any help would be appreciated.