Your address will show here +12 34 56 78

Home Forums General topics for our real estate themes What is the PHP function to print a custom field in a different place

This topic contains 1 reply, has 2 voices, and was last updated by  altemir 2 years ago.

  • Author
    Posts
  • #112669

    Anna
    Keymaster

    use this PHP function to print a custom field

    get_post_meta($post->ID, 'custom_field_name', true);

    Help – https://codex.wordpress.org/Function_Reference/get_post_meta

  • #123330

    altemir
    Participant

    I want to add one more item; footage of the house.

    <div class=”listing-details”>’;
    if($beds!=0){
    $slides.= ‘listings-beds‘.$beds;
    }
    if($baths!=0){
    $slides.= ‘ lsitings_baths‘.$baths;
    }
    if($size!=0){
    $slides.= ‘ lsitings_size‘.$size;
    }

    $slides.= ‘
    </div>

You must be logged in to reply to this topic.