Sunday, June 28, 2026
HomeEveryday WordPressNew blocks, new APIs, and more

New blocks, new APIs, and more


.

Separator block Advanced settings

tagName selector for the Post Content block

Starting with WordPress 6.9, you can select the semantically appropriate wrapper for the Post Content block. You can choose between

,

, or

.

HTML element option for the Post Content block
HTML element option for the Post Content block

Custom link icons for Social Links

A new block_core_social_link_get_services filter now allows developers to add custom link icons to the Social Links block using block variations. This addition provides more options for customizing the Social Links block and eliminates the need for the core to manage a long list of services.

You can find the technical details and the code to register a Social Link variation in the PR #70261. The following image shows the result in the post editor.

A custom link icon in WordPress 6.9
A custom link icon in WordPress 6.9

Sorting by menu order in the Query Loop block

In addition to post title and date, you can now sort post types that support page attributes in the Query Loop block by menu order. To try out this new feature, create multiple pages and use Quick edit to edit each one.

Change menu order in the Pages screen.
Change menu order in the Pages screen.

You can also change the menu item order by editing each page individually. In the Page sidebar on the left, click the Actions button (the three dots in the top right corner). Then, select Order. A pop-up will appear with a numeric field for setting the menu order.

Select menu order from the Actions menu.
Select menu order from the Actions menu.
Change menu order
Change menu order

After setting the page order, create a new page and add a Query Loop block. Select Pages as the post type and sort them by Menu Order.

The menu_order value is available for all post types in the database; however, you need to register support for the page-attributes feature to make this setting available for your custom post types.

For further information on this feature, refer to PR #68781.



Source link

RELATED ARTICLES
Continue to the category

LEAVE A REPLY

Please enter your comment!
Please enter your name here


Most Popular

Recent Comments