JoeHana
10/14/2013 - 5:17 PM

Add custom content before/after listing description by default

Add custom content before/after listing description by default

<?php

/**
 * Add custom content before/after listing description by default
 */
 
add_filter('wpsight_widget_listing_description', 'custom_widget_listing_description');

function custom_widget_listing_description() {
	
	$listing = get_post( get_the_ID() );
	$listing_description = apply_filters( 'the_content', $listing->post_content );
	
	echo do_shortcode('[listing_title]');
	echo $listing_description; // listing description
	echo do_shortcode('[listing_title]');
}