• 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 https://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 to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author xnau webdesign

    (@xnau)

    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.