Problem:
The customer wanted one View to show the latest post for each of three taxonomy terms, plus the latest "Featured" post from another post type, in a 4-item grid. They also asked how to add a class to the wpv-view shortcode.
Solution:
One View cannot return the latest post from each group, because its limit applies to all results combined. Create four small Views, each with a limit of 1, ordered by post date descending, with a taxonomy or custom field filter. Place the four shortcodes inside a container div in a single Custom HTML block, which WordPress does not wrap, and style it as a grid. The wpv-view shortcode has no class attribute, so use a wrapper div.
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.
This topic contains 4 replies, has 1 voice.
Last updated by - 23 hours, 52 minutes ago.
Assisted by: Christopher Amirian.