Hide empty custom fields at the frondend

Support MB Elementor Integrator Hide empty custom fields at the frondend

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #35184
    Peter LeendersPeter Leenders
    Participant

    I use several custom fields for my custom post.
    Not always are all the custom fields filled in.
    Some are empty.

    I have Elementor Pro and maked a new template for my custom post.
    I add all the custom fields. But now I want to hide those fields that are empty.

    How can I do that?

    Greetings,
    Peter

    #35205
    Long NguyenLong Nguyen
    Moderator

    Hi Peter,

    Elementor does not support the conditional option to show/hide a field value. You can try to create a shortcode to check if the field value is not empty and display it then add the shortcode to Elementor builder.

    Refer to this documentation https://docs.metabox.io/extensions/meta-box-group/#outputing-group-with-page-builders

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.