How to insert a block inside the content of a post

The Newspaper theme allows you to include flex blocks inside your content using a Single Post Template.

Click on the single post content element and click on the Ads tab. Here, you can add the code for the flex block to display inside the post content. You can find an example of code to add a flex block with a random post here.

Insert Flex Block code in Article Inline Ad 1
Insert Flex Block code in Article Inline Ad 1

Example: Flex block with a random post. The sample code added in the field for the article inline ad 1.

Example of the Flex Block
Example of the Flex Block

To make your inline blocks, create a new page and set the flex block that you want to use; after you edit it, copy the shortcode for the flex block from the page and set it like in the above example. On the block, you can change different filters.

Page with a Flex Block
Page with a Flex Block

The code is the one set between the “vc_column” and “/vc_column” shortcodes.

The code of the Flex Block
The code of the Flex Block