[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

   1  {
   2      "$schema": "https://schemas.wp.org/trunk/block.json",
   3      "apiVersion": 3,
   4      "name": "core/latest-posts",
   5      "title": "Latest Posts",
   6      "category": "widgets",
   7      "description": "Display a list of your most recent posts.",
   8      "keywords": [ "recent posts" ],
   9      "textdomain": "default",
  10      "attributes": {
  11          "categories": {
  12              "type": "array",
  13              "items": {
  14                  "type": "object"
  15              }
  16          },
  17          "selectedAuthor": {
  18              "type": "number"
  19          },
  20          "postsToShow": {
  21              "type": "number",
  22              "default": 5
  23          },
  24          "displayPostContent": {
  25              "type": "boolean",
  26              "default": false
  27          },
  28          "displayPostContentRadio": {
  29              "type": "string",
  30              "default": "excerpt"
  31          },
  32          "excerptLength": {
  33              "type": "number",
  34              "default": 55
  35          },
  36          "displayAuthor": {
  37              "type": "boolean",
  38              "default": false
  39          },
  40          "displayPostDate": {
  41              "type": "boolean",
  42              "default": false
  43          },
  44          "postLayout": {
  45              "type": "string",
  46              "default": "list"
  47          },
  48          "columns": {
  49              "type": "number",
  50              "default": 3
  51          },
  52          "order": {
  53              "type": "string",
  54              "default": "desc"
  55          },
  56          "orderBy": {
  57              "type": "string",
  58              "default": "date"
  59          },
  60          "displayFeaturedImage": {
  61              "type": "boolean",
  62              "default": false
  63          },
  64          "featuredImageAlign": {
  65              "type": "string",
  66              "enum": [ "left", "center", "right" ]
  67          },
  68          "featuredImageSizeSlug": {
  69              "type": "string",
  70              "default": "thumbnail"
  71          },
  72          "featuredImageSizeWidth": {
  73              "type": "number",
  74              "default": null
  75          },
  76          "featuredImageSizeHeight": {
  77              "type": "number",
  78              "default": null
  79          },
  80          "addLinkToFeaturedImage": {
  81              "type": "boolean",
  82              "default": false
  83          }
  84      },
  85      "supports": {
  86          "align": true,
  87          "html": false,
  88          "color": {
  89              "gradients": true,
  90              "link": true,
  91              "__experimentalDefaultControls": {
  92                  "background": true,
  93                  "text": true,
  94                  "link": true
  95              }
  96          },
  97          "spacing": {
  98              "margin": true,
  99              "padding": true
 100          },
 101          "typography": {
 102              "fontSize": true,
 103              "lineHeight": true,
 104              "__experimentalFontFamily": true,
 105              "__experimentalFontWeight": true,
 106              "__experimentalFontStyle": true,
 107              "__experimentalTextTransform": true,
 108              "__experimentalTextDecoration": true,
 109              "__experimentalLetterSpacing": true,
 110              "__experimentalDefaultControls": {
 111                  "fontSize": true
 112              }
 113          },
 114          "interactivity": {
 115              "clientNavigation": true
 116          }
 117      },
 118      "editorStyle": "wp-block-latest-posts-editor",
 119      "style": "wp-block-latest-posts"
 120  }


Generated : Sat Dec 21 08:20:01 2024 Cross-referenced by PHPXref