Custom box contain post ID

Posted in: Newspaper
Post count: 6

Hey!

I’m wondering how to create “custom” box with will be display one post selected by ID or name post name (with “Read more” button).

This kind of box is already implemented in our template or i have to create it? If i have create it: how do this?

Post count: 20688

Hi,

Most of the page building block elements have the option to limit the post number displayed, If you would like to display a single post in a block, you will just have to set a limit like this
https://www.screencast.com/t/gt1txIMw7m1a
It all depends on the layout and block style that you choose to use for this, there are many elements that you can choose from in the Visual composer editor.
You can find all the settings and options available for the blocks in this guide
https://forum.tagdiv.com/block-settings-guide/
Also all the blocks currently available can be previewed in the live theme demo
https://demo.tagdiv.com/newspaper/block-1/

Thanks

Post count: 6

Thx for answer me Simion.

Im trying to implement first solution(with that screenshot) what did u give.

What i did:
Put “Block 1”
In “General” tab in “Limit post number” input: 1
In “Filter” tab in “Post ID filter:” input: valid id number coming from “Post”

Then block do not even apear…

Also i cannot faind any block that will be display only one post(just many posts in blocks)

Post count: 20688

Hi,

I have tested this and it is working properly for me. Also if you plan to use a specific post Id there is no need to limit the posts, the only one that will be displayed in the block will be the post with that Id. Try adding the block you want on the page, and make sure you enter a valid post Id in the required field
https://www.screencast.com/t/xwnSFdIZC
https://www.screencast.com/t/rT2YmuFk
The result should be the block displaying the post according to the Id entered
https://www.screencast.com/t/Foi9i61SjCH

Thanks

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.