Browse Source

Fix/6829 lettre archive query inherit (#6847)

* Set archive template to inherit query params

* Set index template to inherit query params

* Gave query-sidebar a unique slug
Jason Crist 2 years ago
parent
commit
ca6e9716ed
3 changed files with 3 additions and 3 deletions
  1. 1 1
      lettre/patterns/query-sidebar.php
  2. 1 1
      lettre/templates/archive.html
  3. 1 1
      lettre/templates/index.html

+ 1 - 1
lettre/patterns/query-sidebar.php

@@ -1,7 +1,7 @@
 <?php
 /**
  * Title: List of posts with sidebar
- * Slug: lettre/query-related-post
+ * Slug: lettre/query-sidebar
  * Categories: featured, query, columns
  */
 ?>

+ 1 - 1
lettre/templates/archive.html

@@ -9,7 +9,7 @@
 <div style="height:70px" aria-hidden="true" class="wp-block-spacer"></div>
 <!-- /wp:spacer -->
 
-<!-- wp:query {"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false}} -->
+<!-- wp:query {"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true}} -->
 <div class="wp-block-query"><!-- wp:post-template -->
   <!-- wp:columns -->
   <div class="wp-block-columns"><!-- wp:column {"width":"33.33%"} -->

+ 1 - 1
lettre/templates/index.html

@@ -10,7 +10,7 @@
 <div style="height:70px" aria-hidden="true" class="wp-block-spacer"></div>
 <!-- /wp:spacer -->
 
-<!-- wp:query {"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false}} -->
+<!-- wp:query {"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true}} -->
 <div class="wp-block-query"><!-- wp:post-template -->
   <!-- wp:columns -->
   <div class="wp-block-columns"><!-- wp:column {"width":"33.33%"} -->