Hi, I couldn’t get this to work like the excerpt
I added to the top of the plugin file – “es_listing_functions.php” the following:
<?php
$es_settings = es_front_settings();
$upload_dir = wp_upload_dir();
ob_start();
global $wpdb;
$sql = $wpdb->prepare("SELECT * FROM {$wpdb->prefix}estatik_properties WHERE prop_id = '%d' ORDER BY prop_id desc", get_the_id());
$es_prop_single = $wpdb->get_row($sql);
$prop_rent = $wpdb->get_row( "SELECT period_title FROM {$wpdb->prefix}estatik_manager_rent_period WHERE period_id = '{$es_prop_single->prop_period}'");
and then to output the data I used:
<span><?php echo $prop_rent->period_title?></span>
But it is empty. The site in question can be seen here: https://www.vpropertymanagement.co.uk/search-properties/
Re:above file edit. I didn’t edit file – es_my_listing.php to get the excerpt to show on all property pages. I edited file – “es_listing_functions.php”