Skip Navigation

[Resolved] View Slider Show only 1 post from each category!

This support ticket is created 6 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 6 years, 4 months ago.

Assisted by: Luo Yang.

Author
Posts
#1112403

Hi there.

I have made a View Slider which works well, but I need this slider to Show only the latest post of each category!
Currently, it is showing all the latest posts and sometimes I would have a few posts in the same category but I want the latest of each category to be displayed.

Please let me know if there is any filter or solution to do this.

May God bless

#1112767

Hello,

I suggest you setup a nested view:
1) Parent taxonomy view, list terms of "category", in the views loop, display below child post view
2) Child post view, displays posts based on the parent taxonomy
See our document:
https://toolset.com/documentation/user-guides/using-a-child-view-in-a-taxonomy-view-layout/#taxonomy-view-with-a-post-view-for-a-child

Since it is a nested view, you can not use Views slider in this case, I suggest you the sliders using other slider JavaScripts, for example FlexSlider
hidden link