Widget Blocks
Widget blocks provide common website functionality including search, archives, categories, RSS feeds, and other utility features.Search
Name:core/search
Description: Help visitors find your content.
Attributes
label(string) - Search label textshowLabel(boolean) - Display labelplaceholder(string) - Placeholder text for inputbuttonText(string) - Button textbuttonPosition(string) - Button position (button-inside, button-outside, no-button)buttonUseIcon(boolean) - Use icon instead of textisSearchFieldHidden(boolean) - Hide search field initiallyquery(object) - Search query parameterswidth(number) - Search field widthwidthUnit(string) - Width unit (px, %, etc.)
Supports
- Align: left, center, right
- Color: background, gradients, text
- Spacing: margin
- Typography: fontSize, lineHeight
- Interactivity: true
Usage
Archives
Name:core/archives
Description: Display a date archive of your posts.
Attributes
displayAsDropdown(boolean) - Display as dropdown menushowLabel(boolean) - Show dropdown labelshowPostCounts(boolean) - Show post countstype(string) - Archive type (monthly, yearly)
Supports
- Align: left, center, right
- Color: background, text, link, gradients
- Spacing: margin, padding
- Typography: fontSize, lineHeight
- Interactivity: clientNavigation
Usage
Categories (Terms List)
Name:core/categories
Description: Display a list of all terms of a given taxonomy.
Attributes
taxonomy(string) - Taxonomy to display (category, post_tag, etc.)displayAsDropdown(boolean) - Display as dropdown menushowLabel(boolean) - Show dropdown labellabel(string) - Custom label textshowPostCounts(boolean) - Show post countsshowHierarchy(boolean) - Show hierarchyshowEmpty(boolean) - Show empty categoriesshowOnlyTopLevel(boolean) - Show only top-level terms
Supports
- Align: left, center, right
- Color: background, text, link, gradients
- Spacing: margin, padding
- Typography: fontSize, lineHeight
- Interactivity: clientNavigation
Usage
Latest Posts
Name:core/latest-posts
Description: Display a list of your most recent posts.
Attributes
postsToShow(number) - Number of posts to show, default: 5displayPostContent(boolean) - Display post contentdisplayPostContentRadio(string) - Content type (excerpt, full_post)excerptLength(number) - Excerpt length in wordsdisplayPostDate(boolean) - Display post datedisplayAuthor(boolean) - Display authordisplayFeaturedImage(boolean) - Display featured imagefeaturedImageAlign(string) - Image alignment (left, right, center)featuredImageSizeSlug(string) - Image sizefeaturedImageSizeWidth(number) - Image widthfeaturedImageSizeHeight(number) - Image heightaddLinkToFeaturedImage(boolean) - Link featured image to postpostLayout(string) - Layout (list, grid)columns(number) - Number of columns for gridorder(string) - Sort order (desc, asc)orderBy(string) - Sort by (date, title, author)categories(array) - Filter by category IDsselectedAuthor(number) - Filter by author ID
Supports
- Align: left, center, right, wide, full
- Color: background, text, link, gradients
- Spacing: margin, padding
- Typography: fontSize, lineHeight
- Interactivity: clientNavigation
Usage
Latest Comments
Name:core/latest-comments
Description: Display a list of your most recent comments.
Attributes
commentsToShow(number) - Number of comments to show, default: 5displayAvatar(boolean) - Display commenter avatardisplayDate(boolean) - Display comment datedisplayContent(boolean) - Display comment content
Supports
- Align: left, center, right, wide, full
- Color: background, text, link, gradients
- Spacing: margin, padding
- Typography: fontSize, lineHeight
- Interactivity: clientNavigation
Usage
RSS
Name:core/rss
Description: Display entries from any RSS or Atom feed.
Attributes
feedURL(string) - RSS feed URLitemsToShow(number) - Number of items to show, default: 5displayExcerpt(boolean) - Display excerptexcerptLength(number) - Excerpt length in wordsdisplayAuthor(boolean) - Display authordisplayDate(boolean) - Display dateopenInNewTab(boolean) - Open links in new tabrel(string) - Link rel attributecolumns(number) - Number of columnsblockLayout(string) - Layout type (list, grid)
Supports
- Align: left, center, right, wide, full
- Color: background, text, link, gradients
- Spacing: margin, padding
Usage
Calendar
Name:core/calendar
Description: A calendar of your site’s posts.
Attributes
month(number) - Display specific monthyear(number) - Display specific year
Supports
- Align: left, center, right
- Color: background, text, link
- Typography: fontSize, lineHeight
- Interactivity: clientNavigation
Usage
Tag Cloud
Name:core/tag-cloud
Description: A cloud of popular keywords, each sized by how often it appears.
Attributes
taxonomy(string) - Taxonomy to display (post_tag, category, etc.)numberOfTags(number) - Maximum number of tags, default: 45smallestFontSize(number) - Smallest font sizelargestFontSize(number) - Largest font sizeshowTagCounts(boolean) - Show post counts
Supports
- Align: left, center, right, wide, full
- Spacing: margin, padding
- Typography: lineHeight
- Interactivity: clientNavigation
Usage
Page List
Name:core/page-list
Description: Display a list of all pages.
Attributes
parentPageID(number) - Parent page ID to list childrenisNested(boolean) - Show nested pages
Supports
- Color: background, text, link, gradients
- Spacing: margin, padding
- Typography: fontSize, lineHeight
- Interactivity: clientNavigation
- Allowed Blocks: core/page-list-item
Usage
Custom HTML
Name:core/html
Description: Add custom HTML code and preview it as you edit.
Attributes
content(string) - HTML content
Supports
- Interactivity: clientNavigation
- className: false
- customClassName: false
Usage
Shortcode
Name:core/shortcode
Description: Insert additional custom elements with a WordPress shortcode.
Attributes
text(string) - Shortcode text
Supports
- className: false
- customClassName: false
Usage
Social Icons
Name:core/social-links
Description: Display icons linking to your social profiles or sites.
Attributes
iconColor(string) - Icon color slugiconColorValue(string) - Custom icon coloriconBackgroundColor(string) - Icon background color slugiconBackgroundColorValue(string) - Custom background colorcustomIconColor(string) - Custom icon color (deprecated)customIconBackgroundColor(string) - Custom background color (deprecated)openInNewTab(boolean) - Open links in new tabshowLabels(boolean) - Show text labelssize(string) - Icon size (default, large, huge)
Supports
- Align: left, center, right
- Color: background, gradients
- Layout: default
- Spacing: margin, padding, blockGap
- Allowed Blocks: core/social-link
Usage
Social Icon
Name:core/social-link
Description: Display an icon linking to a social profile or site.
Attributes
service(string) - Social service name (twitter, facebook, instagram, etc.)url(string) - Profile URLlabel(string) - Custom labelrel(string) - Link rel attribute
Supports
- Parent: core/social-links
- Interactivity: clientNavigation
- Reusable: false
Best Practices
- Search optimization - Use descriptive button text and labels
- Widget placement - Place widget blocks in sidebars and footer areas
- Performance - Limit number of posts/comments shown in list widgets
- RSS feeds - Validate feed URLs before adding RSS blocks
- Social links - Keep social icons consistent in size and style
- Accessibility - Ensure dropdown labels are descriptive
- Custom HTML - Validate HTML code to avoid breaking layouts
- Archive organization - Use hierarchical categories for better navigation