Okay
  Public Ticket #940752
hide fields without content
Closed

Comments

  •  2
    kamhang started the conversation

    Hi,

    I created 5 taxonomies in the post, in each post, user only need to input information in one taxonomy, other four taxonomies are empty. 

    in the attached screen, you see that i can display all fields, including empty fields. can wpdatatables only show taxonomy with content and make those empty taxonomies disappeared? How to do it?

  • [deleted] replied

    Hi Kamhang,

    If I understood you correctly those columns on right side of your table are taxonomies. Do you want to remove some columns or NULL text from the cells? I see that you have values in two columns/taxonomies.

  •  2
    kamhang replied

    Hi Miljko,

    Please ignore previous questions, I revise my question as follow:

    I created 5 taxonomies in the post, in each post, user only need to input information in one taxonomy, other four taxonomies are empty. 

    can wpDatatable combine five column(five taxonomies) to one column, as a result, only one taxonomy display?

    Thanks,

  • [deleted] replied

    Hi Kamhang,

    Unfortunately we do not have option like that built in but.

    You could try to do it trough MySQL with functions like COALESCE and IS NULL