<!-- wp:shortcode -->
[xyz-ips snippet="gallery"]
<!-- /wp:shortcode -->

<!-- wp:code -->
<pre class="wp-block-code"><code>global $current_user;
    wp_get_current_user();
    $author_query = array('posts_per_page' => '-1','author' => $current_user->ID);
    $author_posts = new WP_Query($author_query);
    while($author_posts->have_posts()) : $author_posts->the_post();
    ?>
        &lt;a href="&lt;?php the_permalink(); ?>" title="&lt;?php the_title_attribute(); ?>">&lt;?php the_title(); ?>&lt;/a>       
    &lt;?php           
    endwhile;</code></pre>
<!-- /wp:code -->