0

before Gutenberg I could query for all galleries in my blog with this:

$the_query = new WP_Query( $args );

while ( $the_query->have_posts() ) :
    $the_query->the_post();
      echo get_post_gallery();
endwhile;

But this does not output Gutenberg galleries. How do I output Gutenberg block galleries?

Browse other questions tagged or ask your own question.