Make WordPress Core

source: tags/6.4.2/src/wp-content/themes/twentytwentythree/templates/search.html

Last change on this file was 56251, checked in by azaozz, 12 months ago

Twenty Twenty-Three: Remove the perPage attribute where the query inherits from the global query. The global attribute should be used instead.

Props: mikachan, onemaggie.
Fixes: #58581.

  • Property svn:eol-style set to native
File size: 1.8 KB
Line 
1<!-- wp:template-part {"slug":"header","tagName":"header"} /-->
2
3<!-- wp:group {"tagName":"main","style":{"spacing":{"margin":{"top":"var:preset|spacing|70","bottom":"var:preset|spacing|70"}}},"layout":{"type":"constrained"}} -->
4<main class="wp-block-group" style="margin-top:var(--wp--preset--spacing--70);margin-bottom:var(--wp--preset--spacing--70)">
5        <!-- wp:query-title {"type":"search","align":"wide","style":{"spacing":{"margin":{"bottom":"var:preset|spacing|50"}}}} /-->
6
7        <!-- wp:query {"query":{"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true},"displayLayout":{"type":"flex","columns":3},"align":"wide","layout":{"type":"default"}} -->
8        <div class="wp-block-query alignwide">
9                <!-- wp:post-template {"align":"wide"} -->
10                        <!-- wp:post-featured-image {"isLink":true,"width":"100%","height":"clamp(15vw, 30vh, 400px)","align":"wide"} /-->
11                        <!-- wp:post-title {"isLink":true} /-->
12                        <!-- wp:post-excerpt /-->
13                        <!-- wp:post-date {"isLink":true} /-->
14
15                        <!-- wp:spacer {"height":"var(--wp--preset--spacing--70)"} -->
16                        <div style="height:var(--wp--preset--spacing--70)" aria-hidden="true" class="wp-block-spacer"></div>
17                        <!-- /wp:spacer -->
18                <!-- /wp:post-template -->
19
20                <!-- wp:query-pagination {"paginationArrow":"arrow","layout":{"type":"flex","justifyContent":"space-between"}} -->
21                        <!-- wp:query-pagination-previous {"label":"Newer Posts"} /-->
22                        <!-- wp:query-pagination-next {"label":"Older Posts"} /-->
23                <!-- /wp:query-pagination -->
24
25                <!-- wp:query-no-results -->
26                        <!-- wp:pattern {"slug":"twentytwentythree/hidden-no-results-content"} /-->
27                <!-- /wp:query-no-results -->
28        </div>
29        <!-- /wp:query -->
30</main>
31<!-- /wp:group -->
32
33<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
Note: See TracBrowser for help on using the repository browser.