Hello,
Sorry don’t have this option now will try future version.
Thanks
Hi, please it will help. People get annoyed when they look at an ad, only to find out later that it is not for sale and so forth.
Sorry, is it possible to help with custom code for now?
Hello,
if you are at in loop of listing you can use
global $listing;
$listing->get_type();
or you can get by listing id
$type = get_post_meta(post_id, 'ad_type', true);
Thank you
Thank you very much. Where should I be adding this?
Regards,
Leon
Good day,
Any assistance as to where I should be adding the code will be greatly appreciated.
All the best,
Leon
Hello,
You should place it where you like to display the add type.
global $listing;
$type = $listing->get_type();
OR
$type = $type = get_post_meta(post_id, 'ad_type', true);
echo $type;
If you like to display at a single listing then you need to add this at your single listing template to display it.
Thanks
Hi,
Sorry for being slow and waisting your time, but can you please indicate which file to edit and where to insert it in the file?
global $listing;
$type = $listing->get_type();
OR
$type = $type = get_post_meta(post_id, ‘ad_type’, true);
echo $type;
I tried on /wp-content/plugins/classified-listing/templates/single-rtcl_listing.php
But I am simply not able to get it to show the listing type.
Regards,
Leon