Widget Blocks
Dynamic content blocks for sidebars and widgets.
core/archives
Post archives list by date.
Attributes:
displayAsDropdown(boolean) — Display as dropdownshowLabel(boolean) — Show label (default: true)showPostCounts(boolean) — Show post countstype(string) — Archive type (monthly, yearly, weekly, daily)
Supports: align, className, color, spacing, typography
core/calendar
Calendar widget showing posts by date.
Attributes:
month(integer) — Month to displayyear(integer) — Year to display
Supports: align, className, color, typography, spacing
core/categories
Taxonomy terms list (was categories, now handles any taxonomy).
Attributes:
displayAsDropdown(boolean) — Display as dropdownshowHierarchy(boolean) — Show hierarchyshowPostCounts(boolean) — Show post countsshowOnlyTopLevel(boolean) — Show only top levelshowEmpty(boolean) — Show empty termslabel(string) — Dropdown labelshowLabel(boolean) — Show label (default: true)taxonomy(string) — Taxonomy slug (default: category)
Supports: align, className, color, spacing, typography
core/latest-comments
Recent comments list.
Attributes:
commentsToShow(integer) — Number to show (default: 5)displayAvatar(boolean) — Show avatar (default: true)displayDate(boolean) — Show date (default: true)displayExcerpt(boolean) — Show excerpt (default: true)
Supports: align, className, color, spacing, typography
core/latest-posts
Recent posts list.
Attributes:
categories(array) — Category IDsselectedAuthor(integer) — Author IDpostsToShow(integer) — Number to show (default: 5)displayPostContent(boolean) — Show contentdisplayPostContentRadio(string) — Content type (excerpt, full_post)excerptLength(integer) — Excerpt length (default: 55)displayAuthor(boolean) — Show authordisplayPostDate(boolean) — Show datedisplayFeaturedImage(boolean) — Show featured imagefeaturedImageAlign(string) — Image alignmentfeaturedImageSizeSlug(string) — Image sizefeaturedImageSizeWidth(number) — Image widthfeaturedImageSizeHeight(number) — Image heightaddLinkToFeaturedImage(boolean) — Link imagepostLayout(string) — Layout (list, grid)columns(integer) — Grid columns (default: 3)order(string) — Order (asc, desc)orderBy(string) — Order by (date, title, author, random)
Supports: align, className, color, spacing, typography
core/rss
External RSS feed display.
Attributes:
feedURL(string) — Feed URLitemsToShow(integer) — Items to show (default: 5)displayExcerpt(boolean) — Show excerptdisplayAuthor(boolean) — Show authordisplayDate(boolean) — Show dateexcerptLength(integer) — Excerpt length (default: 55)blockLayout(string) — Layout (list, grid)columns(integer) — Grid columns (default: 2)
Supports: align, className, color, spacing, typography
core/search
Search form.
Attributes:
label(string) — Label textshowLabel(boolean) — Show label (default: true)placeholder(string) — Placeholder textwidth(number) — Input width percentagewidthUnit(string) — Width unitbuttonText(string) — Button textbuttonPosition(string) — Button position (button-inside, button-outside, no-button)buttonUseIcon(boolean) — Use icon buttonquery(object) — Query argsisSearchFieldHidden(boolean) — Hide search field
Supports: align, className, color, spacing, typography
core/tag-cloud
Tag/term cloud visualization.
Attributes:
numberOfTags(integer) — Number of tags (default: 45)taxonomy(string) — Taxonomy (default: post_tag)showTagCounts(boolean) — Show countssmallestFontSize(string) — Smallest font (default: 8pt)largestFontSize(string) — Largest font (default: 22pt)
Supports: align, className, color, spacing, typography
core/page-list
Auto-generated page hierarchy.
Attributes:
parentPageID(integer) — Parent page ID (0 for all)isNested(boolean) — Is nested in navigation
Supports: className, color, spacing, typography
core/page-list-item
Single page list item (auto-generated).
Attributes:
id(integer) — Page IDlabel(string) — Page titletitle(string) — Title attributelink(string) — Page URLhasChildren(boolean) — Has child pages
Supports: className
core/social-links
Social media links container.
Attributes:
iconColor(string) — Icon colorcustomIconColor(string) — Custom icon coloriconColorValue(string) — Icon color valueiconBackgroundColor(string) — Background colorcustomIconBackgroundColor(string) — Custom backgroundiconBackgroundColorValue(string) — Background valueopenInNewTab(boolean) — Open in new tabshowLabels(boolean) — Show labelssize(string) — Icon size
Supports: align, anchor, className, color, spacing, layout
core/social-link
Individual social media link.
Attributes:
url(string) — Profile URLservice(string) — Service name (facebook, twitter, etc.)label(string) — Accessible labelrel(string) — Link rel
Supports: className
core/html
Custom HTML block.
Attributes:
content(string) — HTML content
Supports: className, customClassName: false
core/shortcode
WordPress shortcode block.
Attributes:
text(string) — Shortcode text
Supports: className, customClassName: false
core/legacy-widget
Classic widget in block form.
Attributes:
id(string) — Widget instance IDidBase(string) — Widget ID baseinstance(object) — Widget instance data
Supports: className, customClassName: false
core/widget-group
Widget area group.
Attributes:
title(string) — Widget group title
Supports: className, color, spacing, typography