What are block patterns?
Introduced in WordPress 5.5, block patterns allow themes and plugins to define patterns of blocks. These patterns allow users to quickly insert content blocks into their posts or pages, with the blocks in a pattern presented or styled in a particular way.
An example of a basic block pattern may contain a heading, with a number of columns of text or images below the heading.
Just a basic example of some text in the first column.
Some more text content presented in this second column.
Yet another paragraph of text in the third column as an example.
In the example above, the pattern contains ten blocks; a Heading block with Spacer blocks above and below the heading, a Columns block with three columns, and within each column a Heading block, and a Paragraph block, all grouped together within a Group block.
A post/page author could create this layout of content by inserting each block individually to their post, or alternatively the theme (or a plugin) may have this layout available as a block pattern. One advantage of the block pattern is that the page author is able to insert this layout with just one click, rather than adding the 11 blocks one at a time. The content can then be added or edited as required.
Patterns in WordPress core
As of the time of writing, the following block patterns are available directly in WordPress, without needing a block pattern compatible theme or plugin(s).
Two columns of text
Which treats of the character and pursuits of the famous gentleman Don Quixote of La Mancha
In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing. An olla of rather more beef than mutton, a salad on most nights, scraps on Saturdays, lentils on Fridays, and a pigeon or so extra on Sundays, made away with three-quarters of his income.
The rest of it went in a doublet of fine cloth and velvet breeches and shoes to match for holidays, while on week-days he made a brave figure in his best homespun. He had in his house a housekeeper past forty, a niece under twenty, and a lad for the field and market-place, who used to saddle the hack as well as handle the bill-hook. The age of this gentleman of ours was bordering on fifty; he was of a hardy habit, spare, gaunt-featured, a very early riser and a great sportsman.
Two columns of text with images
They must know, then, that the above-named gentleman whenever he was at leisure (which was mostly all the year round) gave himself up to reading books of chivalry with such ardour and avidity that he almost entirely neglected the pursuit of his field-sports, and even the management of his property; and to such a pitch did his eagerness and infatuation go that he sold many an acre of tillageland to buy books of chivalry to read, and brought home as many of them as he could get.
But of all there were none he liked so well as those of the famous Feliciano de Silva’s composition, for their lucidity of style and complicated conceits were as pearls in his sight, particularly when in his reading he came upon courtships and cartels, where he often found passages like “the reason of the unreason with which my reason is afflicted so weakens my reason that with reason I murmur at your beauty;” or again, “the high heavens render you deserving of the desert your greatness deserves.”
Two images side by side
Large header with a heading
Large header with a heading and a button
Thou hast seen
Heading and paragraph
Which treats of the first sally the ingenious Don Quixote made from home
These preliminaries settled, he did not care to put off any longer the execution of his design, urged on to it by the thought of all the world was losing by his delay, seeing what wrongs he intended to right, grievances to redress, injustices to repair, abuses to remove, and duties to discharge.
“Do you see over yonder, friend Sancho, thirty or forty hulking giants? I intend to do battle with them and slay them.”— Don Quixote