Community Forums › Forums › Archived Forums › General Discussion › Show listing title in agentpress pro listings plugin
Tagged: AgentPress Listings, Agentpress Pro
- This topic has 10 replies, 2 voices, and was last updated 8 years, 2 months ago by
tzo.
-
AuthorPosts
-
September 14, 2017 at 3:42 am #211428
tzo
MemberHello there,
Originally agentpress pro displays address as a title.
function agentpress_listing_archive_loop() { if ( have_posts() ) : while ( have_posts() ) : the_post(); $listing_price = genesis_get_custom_field( '_listing_price' ); $listing_text = genesis_get_custom_field( '_listing_text' ); $address = genesis_get_custom_field( '_listing_address' ); $city = genesis_get_custom_field( '_listing_city' ); $state = genesis_get_custom_field( '_listing_state' ); $zip = genesis_get_custom_field( '_listing_zip' ); $loop = ''; // init $loop .= sprintf( '<a href="%s">%s</a>', get_permalink(), genesis_get_image( array( 'size' => 'properties' ) ) ); if( $listing_price ) { $loop .= sprintf( '<span class="listing-price">%s</span>', $listing_price ); } if( $listing_text ) { $loop .= sprintf( '<span class="listing-text">%s</span>', $listing_text ); } if( $address ) { $loop .= sprintf( '<span class="listing-address">%s</span>', $address ); }Any ideas to include the listing title in this loop?
The website isn't open yet, but I'll include the agentpress pro url to show you how the listing widget is displayed.
thank you in advance
https://my.studiopress.com/themes/agentpress/#demo-fullSeptember 14, 2017 at 3:51 am #211429Brad Dalton
ParticipantSeptember 14, 2017 at 5:33 am #211434tzo
MemberHi Braddalton,
The configuration of the listing widget, displays price, address, zip code and a button.
I want add "the_title" of the current taxonomy in the widget.
see img:
https://drive.google.com/open?id=0B9p-Z62O8C1-d2lDaGtqc0s0bmM
Sorry for my non-concret explanation, english it's not my native language.
September 14, 2017 at 7:02 am #211441Brad Dalton
ParticipantSeptember 14, 2017 at 7:08 am #211442tzo
MemberI want the output in the listing card, above the address text.
see the image:
https://drive.google.com/open?id=0B9p-Z62O8C1-bXl0aDZVdjcwcDA
September 14, 2017 at 7:21 am #211445Brad Dalton
ParticipantSeptember 14, 2017 at 7:25 am #211446tzo
MemberYes. But, the order doesn't matter at all, I just want to know how to include it.
Thank you.
September 14, 2017 at 8:00 am #211458Brad Dalton
ParticipantSeptember 14, 2017 at 8:18 am #211460tzo
MemberI want to include the_title field in each listing.
By default, the_title is just displayed when you open the card.
September 14, 2017 at 8:36 am #211461Brad Dalton
ParticipantSeptember 14, 2017 at 9:11 am #211463tzo
MemberI think I'm referring to the taxonomy title.
Thank you for your help braddalton, I will try to figure myself how to solve it. If I can't maybe i'll subscribe to your membership site.
anyway, thank you for your time.
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.