Our Posts block allows you to add the Posts from one or more categories within any post or page which will be displayed with the same styling as the category listing pages and the Tile Grid block.
Settings include: the number of Posts; offset (for instance, if you want to miss out the most recent Post); the post order which can be newest first, oldest first, A-Z or Z-A; whether to show the Featured Image; whether to show the date; and the number of words from the content to show (up to 100).
There are also options for the number of columns and Grid Balance. If Grid Balance is selected, it will ensure that the bottom row of tiles is full so that all the columns are the same height. This is done by making some of the tiles in the first two rows of the block span two columns as necessary.
The settings for the Post Tiles block are:
Number of Posts: from 1 to 99
Offset: specifies the number of posts to miss out
Include all categories: whether to include posts from all categories
Categories: specific categories to include
Multiple categories: when multiple categories are selected, use posts that are in ANY or must be in ALL of the selected categories
Order Using: newest first, oldest first, A-Z or Z-A
Number of columns: 1, 2, 3 or 4 (this is the maximum, actual columns may be reduced at narrower screen widths)
Grid Balance: if enabled, this will ensure that there aren’t empty spaces in the final row of the block, which is achieved by automatically by spanning some tiles over two columns
Tile style: this can be default, normal, reversed, shadow or gapless; default will use the site-wide Customizer setting for Tile style; normal applies a background colour to each tile using a tint of the Theme Primary Colour; reversed applies a background colour to the block rather than each tile, with the tiles having a white background; shadow (no surprise) applies a shadow effect to each tile, with the tiles having a white background; gapless removes the spacing between tiles and adds gradient shading to the background to differentiate each tile
Text colour: can be set to black or white
Background colour: can be set to any colour in the Theme colour palette
Tile border: gives the option of adding a line border to each tile (except with the gapless Tile style)
Include Featured Image: select whether the post’s Featured Image should be included
Include the Date of the Post
Include the Title of the Post
Excerpt type: none excludes an excerpt; standard excerpt matches the Post Archives, using the excerpt word length set in Customiser > Theme Settings or the manual excerpt if set; custom excerpt length will use the word length set in Excerpt length, it will not use any manual excerpt
Excerpt length: for custom Excerpt type, the word length can be set from 5 up to a maximum of 100
Include Button: the Read More button linked to the Post
See the Post Tiles example page.