Your address will show here +12 34 56 78

Home Forums General topics for our real estate themes How to add publish date on property listing in WP Estate and WP RESIDENCE

This topic contains 0 replies, has 1 voice, and was last updated by  Camelia Support Team – WP Estate 2 years, 4 months ago.

  • Author
    Posts
  • #110224

    Code is:

    <strong><?php $my_date = the_date('', '<p>', '</p>', FALSE); echo $my_date; ?></strong>
    

    WPESTATE – add in single-estate_property.php file

    <div>
    
    <div>
    
    <h1><?php the_title(); ?></h1>
    
    <div>
    
    <?php $my_date = the_date('', '<p>', '</p>', FALSE); echo $my_date; ?>
    
    <?php
    
    $price = intval ( get_post_meta($post->ID, 'property_price', true) );
    
    $price_label = esc_html ( get_post_meta($post->ID, 'property_label', true) );
    
    if ($price != 0) {
    
    $price = number_format($price);
    
    if ($where_currency == 'before') {
    
    $price = $currency . ' ' . $price;
    
    } else {
    
    $price = $price . ' ' . $currency;
    
    }
    
    print $price.' '.$price_label;
    
    }else{
    
    $price='';
    
    }

    In WPRESIDENCE add the same code in Single-estate_property (where you wish date to show on property page).

You must be logged in to reply to this topic.