Skip to content

Commit

Permalink
add useFirstImageFromPost to photoblog pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
richtabor committed Aug 27, 2024
1 parent aebf8a7 commit 362fedb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions patterns/query-photoblog.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@

?>

<!-- wp:query {"queryId":2,"query":{"perPage":9,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true,"taxQuery":null,"parents":[]},"enhancedPagination":true,"metadata":{"categories":["blog"],"patternName":"kanso/query-w-featured-image","name":"<?php echo esc_html__( 'Photoblog', 'kanso' ); ?>"}} -->
<!-- wp:query {"query":{"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true,"taxQuery":null,"parents":[]},"enhancedPagination":true,"metadata":{"categories":["blog"],"name":"<?php echo esc_html__( 'Photoblog', 'kanso' ); ?>"}} -->
<div class="wp-block-query"><!-- wp:post-template {"style":{"spacing":{"blockGap":"var:preset|spacing|10"}},"layout":{"type":"grid","columnCount":3,"minimumColumnWidth":null}} -->
<!-- wp:group {"metadata":{"name":"<?php echo esc_html__( 'Post Wrapper', 'kanso' ); ?>"},"layout":{"type":"default"}} -->
<div class="wp-block-group"><!-- wp:post-featured-image {"isLink":true,"aspectRatio":"1","style":{"border":{"radius":"16px"}}} /--></div>
<div class="wp-block-group"><!-- wp:post-featured-image {"aspectRatio":"1","useFirstImageFromPost":true,"style":{"border":{"radius":"16px"}}} /--></div>
<!-- /wp:group -->
<!-- /wp:post-template --></div>
<!-- /wp:query -->
<!-- /wp:query -->

0 comments on commit 362fedb

Please sign in to comment.