• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Show listing title in agentpress pro listings plugin

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Show listing title in agentpress pro listings plugin

This topic is: not resolved

Tagged: AgentPress Listings, Agentpress Pro

  • This topic has 10 replies, 2 voices, and was last updated 5 years, 6 months ago by tzo.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • September 14, 2017 at 3:42 am #211428
    tzo
    Member

    Hello 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-full
    September 14, 2017 at 3:51 am #211429
    Brad Dalton
    Participant

    What do you want to do exactly?

    What do you mean by title?


    Tutorials for StudioPress Themes.

    September 14, 2017 at 5:33 am #211434
    tzo
    Member

    Hi 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 #211441
    Brad Dalton
    Participant

    Where do you want to output the title exactly.


    Tutorials for StudioPress Themes.

    September 14, 2017 at 7:08 am #211442
    tzo
    Member

    I 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 #211445
    Brad Dalton
    Participant

    After the price and before the address?


    Tutorials for StudioPress Themes.

    September 14, 2017 at 7:25 am #211446
    tzo
    Member

    Yes. 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 #211458
    Brad Dalton
    Participant

    Which taxonomy do you want to include please?


    Tutorials for StudioPress Themes.

    September 14, 2017 at 8:18 am #211460
    tzo
    Member

    I 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 #211461
    Brad Dalton
    Participant

    Try these AgentPress Pro tutorials

    I assume you're referring to the entry title or taxonomy title?


    Tutorials for StudioPress Themes.

    September 14, 2017 at 9:11 am #211463
    tzo
    Member

    I 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.

  • Author
    Posts
Viewing 11 posts - 1 through 11 (of 11 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble