The Post Template block defines how individual posts are displayed within a Query Loop block. It contains the blocks that show post information for each post in the query results.
Adding a Post Template Block
- Add aย Query Loop blockย first
- Inside the Query Loop block, click theย “+”ย button
- Search forย “Post Template”ย or find it in theย “Theme”ย category
- Click to insert the block
Note: This block only works within Query Loop blocks.
Adding Post Information Blocks
Inside the Post Template, add blocks to display post information:
Available Post Blocks
- Post Title: Display the post title
- Post Date: Show when the post was published
- Post Excerpt: Display post excerpt/summary
- Post Featured Image: Show the post’s featured image
- Other Blocks: Add any other blocks for custom post displays
Styling Options
Colors
- Background Color: Set background color for the post template
- Text Color: Set default text color
- Link Color: Set color for links
Typography
- Font Size: Control the size of text
- Font Family: Choose a font family
- Font Weight: Make text bold or regular
- Font Style: Apply italic styling
- Line Height: Control vertical spacing
- Letter Spacing: Adjust spacing between characters
- Text Transform: Uppercase, lowercase, or capitalize
- Text Decoration: Add underline or other decorations
Spacing
- Padding: Add internal spacing around post content
- Block Gap: Control spacing between post information blocks
Borders
- Border Color: Choose a border color
- Border Radius: Round the corners
- Border Style: Solid, dashed, dotted, etc.
- Border Width: Set border thickness
Best Practices
- Complete Information: Include relevant post details (title, date, excerpt)
- Clear Layout: Make post information easy to scan
- Consistent Styling: Style all posts consistently
- Mobile-Friendly: Ensure post information is readable on mobile
- Visual Hierarchy: Use typography and spacing to create clear hierarchy
Troubleshooting
Template Not Displaying
- Verify the block is inside a Query Loop block
- Check that post information blocks are added
- Ensure posts are available from the query
Post Information Missing
- Verify post information blocks are properly added
- Check that posts have the required data
- Ensure the query is returning posts
Additional resources
Use the links below for more information and guidance on adding blocks. Keep in mind that these articles are general information related to the WordPress Editor and building with blocks. Email Customizer does not utilize all blocks or functionality due to the limited capabilities of emails.
WordPress Editor