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:

Related Tutorials

Join 5000+ Followers

Get The Latest Free & Premium Tutorials Delivered The Second They’re Published.