Tài Liệu Tu Phật Pháp

query loops

Ok it simple.
Need to have posts with taxonomie (category, tags etc.).
Create a Query Loop block whereever you like

  • Configure the Query Loop:
    • Select the Query Loop block in the editor.
    • Open the Block panel in the right sidebar (if not visible, click the Settings icon in the top-right).
    • [Query Type: Custom]
    • Disable “Inherit query from template”: (if present and you want a custom query).
    • Add a Filter: Under the “Filters” section, click the + icon.
    • Select “Taxonomies”: Choose this option to filter by categories, tags, or other custom taxonomies.
    • Choose “Categories”: Select “Categories” as the specific taxonomy you want to filter by.
    • Select the Desired Category: Start typing the name of the category you want to display posts from, and select it from the suggestions. You can select multiple categories if needed.
  • Open the Block panel in the right sidebar (if not visible, click the Settings icon in the top-right),
  • Disable “Inherit query from template”: (if present and you want a custom query).
  • Select Custom for Query type
  • Add a Filter: Under the “Filters” section, click the + icon.
  • Select “Taxonomies”: Choose this option to filter by categories, tags, or other custom taxonomies.
  • Choose “Categories”: Select “Categories” as the specific taxonomy you want to filter by.
  • Select the Desired Category: Start typing the name of the category you want to display posts from, and select it from the suggestions. You can select multiple categories if needed.
  • Customize the Display:
    • Within the Query Loop block, you will find nested blocks like “Post Title,” “Featured Image,” “Post Date,” etc.
    • Customize these inner blocks to control how each post in the loop is displayed (e.g., add or remove elements, change their order, adjust styling).

Loading

Chọn Bài

Mỗi Lần Một Câu

[random quotes go here]

Bài Mới