soflyy / breakdance-bugs

Bug reports from Breakdance users.
42 stars 6 forks source link

Hide Post Meta When Empty #910

Open thekendog opened 1 year ago

thekendog commented 1 year ago

Is your feature request related to a problem? Please describe. When outputting data using the post meta element, if the field is empty the list item and icon are still being shown.

Describe the solution you'd like Don't show the list item if the meta field is blank or empty.

Additional context Simply add a conditional in the SSR for the Post_Meta element, if ( !empty($dataCustom) ). I did this and tested and it works.

thekendog commented 1 year ago

This same thing happens to social icons. I am linking the icon to an ACF field but the field is not required. The social icon is still being output when it's empty.