[ Index ] |
PHP Cross Reference of WordPress |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Featured posts block pattern 4 */ 5 return array( 6 'title' => __( 'Featured posts', 'twentytwentytwo' ), 7 'categories' => array( 'featured', 'query' ), 8 'content' => '<!-- wp:group {"align":"wide","layout":{"inherit":false}} --> 9 <div class="wp-block-group alignwide"><!-- wp:paragraph {"style":{"typography":{"textTransform":"uppercase"}}} --> 10 <p style="text-transform:uppercase">' . esc_html__( 'Latest posts', 'twentytwentytwo' ) . '</p> 11 <!-- /wp:paragraph --> 12 13 <!-- wp:query {"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false},"displayLayout":{"type":"flex","columns":3}} --> 14 <div class="wp-block-query"><!-- wp:post-template --> 15 <!-- wp:post-featured-image {"isLink":true,"width":"","height":"310px"} /--> 16 17 <!-- wp:post-title {"isLink":true,"fontSize":"large"} /--> 18 19 <!-- wp:post-excerpt /--> 20 21 <!-- wp:post-date {"fontSize":"small"} /--> 22 <!-- /wp:post-template --></div> 23 <!-- /wp:query --></div> 24 <!-- /wp:group -->', 25 );
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Nov 21 01:00:03 2024 | Cross-referenced by PHPXref 0.7.1 |