• Resolved wiresandwifi

    (@wiresandwifi)


    Good day,

    Quick Question. Is it possible to display the Listing Type ? Ad Type (Sell, Buy, Exchange)

    I would like it to display in the listing view, Detailed Listing View, as well as the Widget view (Recent Listings)

    Regards,
    Leon

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author RadiusTheme

    (@techlabpro1)

    Hello,

    Sorry don’t have this option now will try future version.

    Thanks

    Thread Starter wiresandwifi

    (@wiresandwifi)

    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.

    Thread Starter wiresandwifi

    (@wiresandwifi)

    Sorry, is it possible to help with custom code for now?

    Plugin Author RadiusTheme

    (@techlabpro1)

    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

    Thread Starter wiresandwifi

    (@wiresandwifi)

    Thank you very much. Where should I be adding this?

    Regards,
    Leon

    Thread Starter wiresandwifi

    (@wiresandwifi)

    Good day,

    Any assistance as to where I should be adding the code will be greatly appreciated.

    All the best,
    Leon

    Plugin Author RadiusTheme

    (@techlabpro1)

    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

    Thread Starter wiresandwifi

    (@wiresandwifi)

    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

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Listing Types not displaying’ is closed to new replies.