Well, first, the “groups” attribute doesn’t do anything in the list shortcode, so you can take it out, also the “blank-field” class is only used in the pdb_single and pdb_record displays, so that won’t help you.
Your best bet is to use a filter in the shortcode that only shows records that have a value in a specific field…for instance if you wanted to show all records that had a value for the field “city” do this:
[pdb_list filter="city!" ]
That means “show all records where the ‘city’ field is not empty.”
Thanks for the pointer Xanu. Unfortunately it doesn’t quiet do what I try to achieve. Using your suggestion gives me a list of only those records, but it gives me a full list with all the entries for the records that have something in the field “city” (in my case “software”). The output is showing the fields in the order that are defined in the admin panel of the plugin.
I am basically trying to do this: http://xnau.com/multiple-databases-with-participants-database/ But instead of showing the signup page, I am trying to get a list of only some fields, which are in a group, and only those records that have a value in the “software” field.
The closest I got using this: [pdb_list fields=”software,url,license”]
But then it shows all records and I can’t hide blank ones.
You can use any and all of the attributes in your shortcode:
[pdb_list filter="city!" fields="software,url,license" ]
As far as which records you want it to show, you have to figure that out…I just showed you an example, but many things are possible. Read this section on using the list filters:
Filtering the List
WOW! Thank you. Works perfectly!