• I’d like to format the output of a search to not display any empty fields in the results list. Some of the form fields are not mandatory and therefore not always necessary to show them in the list of results.

    Please tell me of an easy way to do this?

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

    (@xnau)

    If I am understanding what you want to do correctly, for the standard formatting, it would actually be a bit complicated if there are multiple results to the search. You’d need to determine which fields didn’t need to be shown because the default formatting uses a table, and you need to know beforehand how many columns are in the table.

    If you use a different template, for example the “responsive” template, then the results are not shown in a table, and so by default, each result would only show the fields that have data in them. The linked article explains the templates that are available for the list shortcode.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.