[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/blocks/query/ -> block.json (source)

   1  {
   2      "$schema": "https://schemas.wp.org/trunk/block.json",
   3      "apiVersion": 3,
   4      "name": "core/query",
   5      "title": "Query Loop",
   6      "category": "theme",
   7      "description": "An advanced block that allows displaying post types based on different query parameters and visual configurations.",
   8      "keywords": [ "posts", "list", "blog", "blogs", "custom post types" ],
   9      "textdomain": "default",
  10      "attributes": {
  11          "queryId": {
  12              "type": "number"
  13          },
  14          "query": {
  15              "type": "object",
  16              "default": {
  17                  "perPage": null,
  18                  "pages": 0,
  19                  "offset": 0,
  20                  "postType": "post",
  21                  "order": "desc",
  22                  "orderBy": "date",
  23                  "author": "",
  24                  "search": "",
  25                  "exclude": [],
  26                  "sticky": "",
  27                  "inherit": true,
  28                  "taxQuery": null,
  29                  "parents": [],
  30                  "format": [],
  31                  "excludeCurrent": null
  32              }
  33          },
  34          "tagName": {
  35              "type": "string",
  36              "default": "div"
  37          },
  38          "namespace": {
  39              "type": "string"
  40          },
  41          "enhancedPagination": {
  42              "type": "boolean",
  43              "default": false
  44          }
  45      },
  46      "usesContext": [ "templateSlug", "postType" ],
  47      "providesContext": {
  48          "queryId": "queryId",
  49          "query": "query",
  50          "displayLayout": "displayLayout",
  51          "enhancedPagination": "enhancedPagination"
  52      },
  53      "supports": {
  54          "anchor": true,
  55          "align": [ "wide", "full" ],
  56          "html": false,
  57          "layout": true,
  58          "interactivity": true
  59      },
  60      "editorStyle": "wp-block-query-editor"
  61  }


Generated : Mon Jul 27 08:20:18 2026 Cross-referenced by PHPXref