AppCheap / roadmap

12 stars 0 forks source link

Exclude "X" posts From Posts blocks #43

Closed lorus123 closed 2 years ago

lorus123 commented 2 years ago

When i add two Latest post block in a screen , it show same posts. But i want to show 1 to 5 posts in first block and 6 to 10 posts in second block. Add a option to exclude "X" posts

dangtienngoc commented 2 years ago

Instead, exclude 1->5 first posts.

I will add config one config page in the widget "Post latest"

with 2 option page and per_page You can config as you wish

Ex:

Widget 1: page = 1, per_page = 5 It will always load 5 first posts Widget 2: page = 2, per_page = 5 It will load 6 => 10

lorus123 commented 2 years ago

So basically widget 2 is excluding the posts mentioned in Previous widget that is 5.

lorus123 commented 2 years ago

If i place only one widget where i want to show 6 to 10 posts.

Any possibility to achieve with this?

dangtienngoc commented 2 years ago

So basically widget 2 is excluding the posts mentioned in the Previous widget that is 5.

No need to exclude, the widget 2 you just query posts from page 2

page 1 page 2
1,2,3,4,5 6,7,8,9, 10
lorus123 commented 2 years ago

okay , add this.

we will check and improve it later (if required).