[ 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              }
  32          },
  33          "tagName": {
  34              "type": "string",
  35              "default": "div"
  36          },
  37          "namespace": {
  38              "type": "string"
  39          },
  40          "enhancedPagination": {
  41              "type": "boolean",
  42              "default": false
  43          }
  44      },
  45      "usesContext": [ "templateSlug" ],
  46      "providesContext": {
  47          "queryId": "queryId",
  48          "query": "query",
  49          "displayLayout": "displayLayout",
  50          "enhancedPagination": "enhancedPagination"
  51      },
  52      "supports": {
  53          "align": [ "wide", "full" ],
  54          "html": false,
  55          "layout": true,
  56          "interactivity": true
  57      },
  58      "editorStyle": "wp-block-query-editor"
  59  }


Generated : Sat Feb 22 08:20:01 2025 Cross-referenced by PHPXref