Browse Source

Multiple themes: Fix archive page to show filtered posts (#5914)

* Skatepark: set inherit to true in archive page template

* MaylandBlocks: set inherit to true in archive page template
Madhu Dollu 3 years ago
parent
commit
1bb11b29bc
2 changed files with 2 additions and 2 deletions
  1. 1 1
      mayland-blocks/block-templates/archive.html
  2. 1 1
      skatepark/patterns/blog-posts.php

+ 1 - 1
mayland-blocks/block-templates/archive.html

@@ -3,7 +3,7 @@
 <!-- wp:group {"tagName":"main","layout":{"inherit":true}} -->
 <main class="wp-block-group">
 
-<!-- wp:query {"query":{"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","sticky":""}} -->
+<!-- wp:query {"query":{"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","sticky":"","inherit":true}} -->
 <div class="wp-block-query">
 <!-- wp:query-title {"type":"archive","style":{"spacing":{"margin":{"bottom":"120px"}}}} /-->
 <!-- wp:post-template -->

+ 1 - 1
skatepark/patterns/blog-posts.php

@@ -6,7 +6,7 @@
  */
 ?>
 
-<!-- wp:query {"query":{"perPage":6,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"exclude","inherit":false},"displayLayout":{"type":"flex","columns":3},"align":"wide"} -->
+<!-- wp:query {"query":{"perPage":6,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"exclude","inherit":true},"displayLayout":{"type":"flex","columns":3},"align":"wide"} -->
 <div class="wp-block-query alignwide"><!-- wp:post-template -->
 <!-- wp:group {"style":{"spacing":{"padding":{"top":"30px"}}},"layout":{"inherit":false}} -->
 <div class="wp-block-group" style="padding-top:30px">