Decoding the template attribute for Inner Blocks in WordPress

InnerBlocks is quite a nifty feature in WordPress. It allows you to set up a new block comprised of existing blocks in a pre-defined layout in the content of a post. They prove to be very useful when dealing with sites having monotonous content on a number of posts. It can be a real time saver. In order to set up a block containing InnerBlocks, refer to the official documentation. It will clear a lot of things for you. However, in this article, we will not be talking about setting up InnerBlocks. In this post, we'll focus on one particular attribute template. The layout of a block is set up with the help of this attribute and frankly, it's not very well explained in the official docs. So, I thought of shedding some light on it.

How to show the date for a post in WordPress?

WordPress, primarily being a blogging platform, has blog posts at the centre of it. While designing a WordPress theme, more often than not, there is a need to add a custom layout for posts. And while creating the layout, usually the date of the post needs to be displayed. In this article, we are going to see how to add a date to a post in WordPress.