Tagged: , ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1275796

    I have a Masonry element on our blog page that is set to show posts of all categories. But it’s also showing posts ACF’s custom post type “acf-field-group”. They shouldn’t be showing up there, as they are not a publishable post type.

    I found an old thread and tried the suggested solutions but didn’t work.

    I found where it is in the code (/enfold/config-templatebuilder/avia-shortcodes/av-helper-masonry.php) so I’ve fixed it temporally by replacing line 69:
    'post_type' => get_post_types(), with 'post_type' => 'post',. But this is only good until the theme gets updated!

    How can I permanently prevent them from showing?
    Thanks

    #1276066

    Hey arapps,

    Thank you for the inquiry.

    You can override the element in your child theme by creating a new shortcode path. Please check the following documentation for more info.

    // https://kriesi.at/documentation/enfold/intro-to-layout-builder/#add-elements-to-alb

    Best regards,
    Ismael

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