[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Title: List of posts, 1 column 4 * Slug: twentytwentyfive/template-query-loop 5 * Categories: query 6 * Block Types: core/query 7 * Description: A list of posts, 1 column, with featured image and post date. 8 * 9 * @package WordPress 10 * @subpackage Twenty_Twenty_Five 11 * @since Twenty Twenty-Five 1.0 12 */ 13 14 ?> 15 <!-- wp:query {"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true,"taxQuery":null,"parents":[]},"align":"full","layout":{"type":"default"}} --> 16 <div class="wp-block-query alignfull"> 17 <!-- wp:post-template {"align":"full","layout":{"type":"default"}} --> 18 <!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|60"}}},"layout":{"type":"constrained"}} --> 19 <div class="wp-block-group alignfull" style="padding-top:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--60)"> 20 <!-- wp:post-featured-image {"isLink":true,"aspectRatio":"3/2"} /--> 21 <!-- wp:post-title {"isLink":true,"fontSize":"x-large"} /--> 22 <!-- wp:post-content {"align":"full","fontSize":"medium","layout":{"type":"constrained"}} /--> 23 <!-- wp:post-date {"isLink":true,"style":{"spacing":{"margin":{"top":"var:preset|spacing|40"}}},"fontSize":"small"} /--> 24 </div> 25 <!-- /wp:group --> 26 <!-- /wp:post-template --> 27 <!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|60"}}},"layout":{"type":"constrained"}} --> 28 <div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--60)"> 29 <!-- wp:query-no-results --> 30 <!-- wp:paragraph --> 31 <p><?php echo esc_html_x( 'Sorry, but nothing was found. Please try a search with different keywords.', 'Message explaining that there are no results returned from a search.', 'twentytwentyfive' ); ?></p> 32 <!-- /wp:paragraph --> 33 <!-- /wp:query-no-results --> 34 </div> 35 <!-- /wp:group --> 36 <!-- wp:group {"align":"wide","layout":{"type":"constrained"}} --> 37 <div class="wp-block-group alignwide"> 38 <!-- wp:query-pagination {"paginationArrow":"arrow","align":"wide","layout":{"type":"flex","justifyContent":"space-between"}} --> 39 <!-- wp:query-pagination-previous /--> 40 <!-- wp:query-pagination-numbers /--> 41 <!-- wp:query-pagination-next /--> 42 <!-- /wp:query-pagination --> 43 </div> 44 <!-- /wp:group --> 45 </div> 46 <!-- /wp:query -->
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated : Sun Dec 22 08:20:01 2024 | Cross-referenced by PHPXref |