• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2662

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

Hide Empty Property Details Fields In AgentPress Pro

This tutorial contains the code which enables you to hide empty property details field in the AgentPress Pro child theme by StudioPress.

The AgentPress Listings plugin generates different custom fields on each single listings edit screen which are all printed regardless of whether they contain data or not as you can see in the following image:

before

You can see that all fields are output regardless of whether they are empty or contain a value.

The code in this tutorial only prints the fields which contain data as you can see in the following screen shot:

after

Register or login to access the file which contains the code:

Register for full access

Related Tutorials

  • Modify AgentPress Listings Plugin Property Details Class For The Shortcode Function
  • Remove Additional Features Text From AgentPress Property Details When Empty

AgentPress Pro Theme

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems