• Nick
    February 5, 2015 at 8:52 am #102489

    Hello guys,

    I’ve created a custom field with the name “directions”

    Field Name: directions
    Field Label: Directions Link
    Field Type: short text
    Field Order: 1

    In the listings_functions.php the custom field is in line 346 and show all custom fields with one style (as shown below).

    if($value!=”){
    $return_string.= ‘<div class=”listing_detail col-md-4″>‘.ucwords($label).’: ‘ .$value. ‘</div>’;
    }

    How can I show the “directions” custom field with a code like property_rooms as shown below?

    if ($property_rooms != ”){
    $return_string.= ‘<div class=”listing_detail col-md-4″>‘.__(‘Rooms’,’wpestate’).’:<br />’ . $property_rooms . ‘</div>’;
    }

    With this change I will be able to give a different unique style, with icon, link, etc)

    Thanks all

    nick

    Anna
    February 5, 2015 at 2:32 pm #102506

    Hi Nick

    This is a technical question and my colleagues would need to go over the code to be able to confirm if they can help with some tips or not.

    Please open a ticket here – http://support.wpestate.org/

    Because of the workload they only answer in the ticket system as they don’t have the chance to be on forum as well.

    Thank you for understanding.

    Anna

    Nick
    February 13, 2015 at 8:59 pm #102858

    Sorry for the inconvenience. I asked whether there is someone else to answer.

    Anna
    February 16, 2015 at 10:34 am #102906

    Hi Nick

    There is no inconvenience for us. No worries about that.

    Thank you
    Anna

    rashmi18
    August 27, 2015 at 1:46 pm #121854

    Hi Nick

    Had you found the solution ?
    I need the same.I want to display one of the custom field where the area,bath,rooms,..are shown
    Please reply me.I am in great need.

    Thanks

    • This reply was modified 1 year, 10 months ago by  rashmi18.
    rashmi18
    August 27, 2015 at 1:47 pm #121855

    Hi Nick

    Had you find the solution ?
    I need the same.I want to display one of the custom field where the area,bath,rooms,..are shown
    Please reply me.

    Thanks

    • This reply was modified 1 year, 10 months ago by  rashmi18.
    Anna
    August 27, 2015 at 4:06 pm #121871

    Hi

    Please see also this forum http://wpestate.org/forums/topic/php-function-print-custom-field-different-place/

    The Area, Baths, Rooms – are in libs/listing_functions.php

    Thank you
    Anna

You must be logged in to reply to this topic.

Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.