• 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

agentpress-listings: adress of property "private"

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 › Showcase and Feedback › agentpress-listings: adress of property "private"

Tagged: AgentPress Listings, public informations

  • This topic has 8 replies, 4 voices, and was last updated 8 years ago by Gael.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • October 26, 2014 at 4:34 am #129252
    Gael
    Member

    Hi,

    I would like hide the addresss of the properties in front-end but use it in back-end.

    How can I do that?

    Thanks

    http://movetomadrid.com/listings/stunning-studio-in-paseo-del-prado/
    October 27, 2014 at 2:39 am #129397
    Ben @ Inbound Creative
    Member

    Hi Gael,

    When you say hide the address, do you mean hide the map or the ZIP or something else?


    Award winning web design in Liverpool | UK based Genesis Framework web designer and developer

    October 27, 2014 at 11:39 am #129450
    Gael
    Member

    Yes, that is. I would like "not show" the street address of a property on the front end but use it on the backend.

    October 27, 2014 at 12:00 pm #129453
    Ben @ Inbound Creative
    Member

    Sorry Gael. Can you let me know exactly which it is that you want to hide.


    Award winning web design in Liverpool | UK based Genesis Framework web designer and developer

    October 27, 2014 at 12:42 pm #129465
    Gael
    Member

    🙂
    Maybe an image will be better:
    screenshot

    If I can hide the yellow part... (Address field)

    November 1, 2014 at 9:53 am #130084
    RavenManiac
    Participant

    What happens if you simply don't include an address?

    November 1, 2014 at 12:01 pm #130101
    Gael
    Member

    Hi Ravemaniac,

    Do not insert an adress will be good but unfortunly I need the adress in backend (in the administration part). I've tried to hide it directly from the script but this field disappears in the front AND back end ...

    Thanks for the idea 🙂

    November 22, 2014 at 4:39 pm #132529
    saxisme
    Member

    Hi Gael,

    You could use the function (http://codex.wordpress.org/Function_Reference/is_user_logged_in) in the archive-listing.php page, something like this in line 60:

    
    if ( is_user_logged_in() ) {
    		if( $address ) {
    			$loop .= sprintf( '<span class="listing-address">%s</span>', $address );
    		}
    }
    
    January 4, 2015 at 11:09 am #136032
    Gael
    Member

    Hi Saxisme!

    Sorry to reply late (very late, ok!)

    This solution is working. Just remember to not update the plugin or I need to work again.

    Many thanks!

  • Author
    Posts
Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘Showcase and Feedback’ 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