[Support request] Content template – 2 columns and shortcode

Home Forums Support [Support request] Content template – 2 columns and shortcode

Home Forums Support Content template – 2 columns and shortcode

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

    Hi
    I’ve created a content template to display CPT posts.
    it’s 2 columns (via the GB grid) – on the left a shortcode which will display an ACF gallery, on the right – the title and some more custom fields.
    The problem is that the gallery which is showing up on the page is not inside the grid block, but outputed before the grid.

    Whatever I do, I cannot have the gallery show up in the first column of the grid wrapper. it always outputs itself before the gb-container.
    See screenshot.
    https://www.dropbox.com/s/1rtm7ru2n18kwkd/content-template-shortcode.jpg?dl=0

    Any ideas why?

    Thanks
    Dan

    #2377925
    Dan

    adding

    $output = ob_get_clean();
        return $output;

    to the end of the shortcode function resolved the issue.

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