tjacobson
Forum Replies Created
-
OK, got the listings page to work with multiple property types, however, my property page with the short code isn’t showing the multiple property types. How do I get the pages with the short codes to pull the correct custom template?
https://dev.foldetta.com/listings/
https://dev.foldetta.com/listings/
- This reply was modified 7 years, 8 months ago by tjacobson.
When I try to view the listings page it gives me an error, but I can’t figure out what is wrong on line 38.
Parse error: syntax error, unexpected ‘listing’ (T_STRING) in /home/foldetta/public_html/dev/wp-content/themes/enfold-child/archive-listing.php on line 38
Here is that line:
$loop .= sprintf( ‘<span class=”listing-property-type”>%s</span>’, get_the_term_list( get_the_ID(), ‘property-types’, “, ‘, ‘, ” ) );does it need to be ‘_property_types’
When I look at my properties page it only shows the Enfold template and the functions.php from the enfold-child. I created my own properties page using the Avia page builder in Enfold, and used the shortcode to pull up all the property listings.
I’m confused, I don’t have a custom template. I am talking about the archive view, the Properties page that shows all my properties listing. I want all the property types to show for a listing on the thumbnails, not just the primary one. The single listings do show all the property types. Any help would be appreciated.
Thanks
Forum: Plugins
In reply to: [IMPress Listings] Show multiple Listing types in bannerNever mind, I figured it out. Changed this code:
$loop .= sprintf( ‘<span class=”listing-property-type”>%s</span>’, wp_listings_get_property_types() );
To this code:
$loop .= sprintf( ‘<span class=”listing-property-type”>%s</span>’, get_the_term_list( get_the_ID(), ‘property-types’, ”, ‘, ‘, ” ) );
Forum: Plugins
In reply to: [IMPress Listings] Show multiple Listing types in bannerI don’t think we are talking about the same thing. I am talking about the white bar that goes across the bottom of the image in the listings page, the one over top of the pricing bar. The one that says whether it is a home, condo or residential (property type). I need that bar to say all the property types selected, not just the first one. So say I have a property that is both residential and a townhouse, I want both to show. I am not talking about the diagonal status bar that says For Rent or Sold or For Sale (status taxonomy). Anyway to do this?
Forum: Plugins
In reply to: [IMPress Listings] Show multiple Listing types in bannerWhat about the property type, would I use the same?
Forum: Plugins
In reply to: [IMPress Listings] Show multiple Listing types in bannerI figure it is some change I need to make to the archive-listing.php page, some change in this line, just not sure what needs to be modified:
if ( ” != get_post_meta( $post->ID, ‘_listing_text’, true ) ) {
$loop .= sprintf( ‘<span class=”listing-text”>%s</span>’, get_post_meta( $post->ID, ‘_listing_text’, true ) );
} elseif ( ” != wp_listings_get_property_types() ) {
$loop .= sprintf( ‘<span class=”listing-property-type”>%s</span>’, wp_listings_get_property_types() );
}