Title: Hide Empty Fields
Last modified: February 17, 2019

---

# Hide Empty Fields

 *  [gavinwatts](https://wordpress.org/support/users/gavinwatts/)
 * (@gavinwatts)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/hide-empty-fields-3/)
 * How would one go about hiding empty fields when using the [PDB_list] shortcode?
   My problem is that I have a large number of fields that members complete based
   on certain criteria. The fields that they have not, or do not have to, complete
   makes for a very long row when viewing the record (approximately 80 fields). 
   The fields have been grouped but I cannot get the pdb_list groups shortcode to
   work so I am looking for an alternative. I have used this exact shortcode to 
   try and list only the specific groups [pdb_list groups=”main,data_capturer”] 
   on this page [http://tekusebenta.co.za/show-job-seeker-detail/](http://tekusebenta.co.za/show-job-seeker-detail/)
   but it lists all the records. The spelling for the groups is correct
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhide-empty-fields-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Roland Barker](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/hide-empty-fields-3/#post-11215893)
 * The default list shortcode template shows the records in a table. An HTML table
   always has the same number of columns in each row, so with that template, there
   is no advantage to suppressing empty fields, you’ll just get empty cells anyway.
 * If you want to have a display where only the fields that have data are shown,
   you’ll need to use a different template that doesn’t use a table: either the “
   responsive” template, or the “flexbox” template. These templates are designed
   for responsive, flexible displays and are very different from the table-based
   displays. Try it out, it may work for you. In both cases, you will probably have
   to add some of your own CSS to get it looking the way you want in your theme.
 * [pdb_list template=responsive]

Viewing 1 replies (of 1 total)

The topic ‘Hide Empty Fields’ is closed to new replies.

 * ![](https://ps.w.org/participants-database/assets/icon-256x256.jpg?rev=1389807)
 * [Participants Database](https://wordpress.org/plugins/participants-database/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/participants-database/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/participants-database/)
 * [Active Topics](https://wordpress.org/support/plugin/participants-database/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/participants-database/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/participants-database/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Roland Barker](https://wordpress.org/support/users/xnau/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/hide-empty-fields-3/#post-11215893)
 * Status: not resolved