- This topic has 8 replies, 4 voices, and was last updated 8 years, 5 months ago by .
Viewing 9 posts - 1 through 9 (of 9 total)
Viewing 9 posts - 1 through 9 (of 9 total)
- The forum ‘Showcase and Feedback’ is closed to new topics and replies.
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.
Community Forums › Forums › Archived Forums › Showcase and Feedback › agentpress-listings: adress of property "private"
Tagged: AgentPress Listings, public informations
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/Hi Gael,
When you say hide the address, do you mean hide the map or the ZIP or something else?
Yes, that is. I would like "not show" the street address of a property on the front end but use it on the backend.
Sorry Gael. Can you let me know exactly which it is that you want to hide.
🙂
Maybe an image will be better:
If I can hide the yellow part... (Address field)
What happens if you simply don't include an address?
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 🙂
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 );
}
}
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!
© 2023 WPEngine, Inc.