Custom Block with selected posts or category and random

Posted in: Newspaper
Post count: 191

I want to create a Custom Block with selected posts with 1 big post and many (3 to 6) small posts and random order(change the big post with every page refresh).
Is this possible ?

Post count: 27744

Hello,

You can add a category for those posts and set the category for that block, and sort it random.

Thank you!

Post count: 191

Hello.

Is it possible to dynamically get the category for a flex block? I want to save a flex block layout as a template, then have the filter category selected automatically, either based on the page name, or a custom field.

I know I can do it manually, add flex block on each page and select the proper category, but since there are going to be many pages, having the selection automatic would speed up the process a lot

Post count: 27744

Hi,

For the category template, if you have set a posts loop then will display all posts in this category or you can use Flex Block/Big Grid Flex and set the filter to “Category -Current category” => https://i.imgur.com/7P99qx0.png and this is why the block will display posts for each category.

Thank you!

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