Skip Navigation

[Resolved] Displaying only one item from each taxonomy

This support ticket is created 5 years, 6 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/Karachi (GMT+05:00)

Author
Posts
#1243414

Hi

I'd like to display my post type (books) in a loop view but only one item from each taxonomy ( hidden link ). The end result should look like this. I read in your FAQ that this would be achievable via this shortcode ( "[wpv-item index]" ) but I'm not precisely sure how to use it in the loop view.

Book 1 new
Book 3 old
Book 5 sold

Is this possible?

Regards

#1243433

{ticket status updated}

#1243438

OK

I created both the parent and the child view - hidden link

I inserted the child view ( books ) into the parent view's loop - hidden link and I set the display to only one item( hidden link )

On the front display page I embedded the parent view but I don't get only a book from each category ( hidden link )

Regards

#1243485

Hi Marian,

Thank you for sharing these screenshots.

1. The limit to show only 1 item should be set in the "Book Display" view and not the "Books Taxonomies" view.
( screenshot: hidden link )

2. If the "Book Display" view is showing all the books, it means that the query filter to show posts based on the parent taxonomy view is not set in it.
( ref: https://toolset.com/documentation/user-guides/using-a-child-view-in-a-taxonomy-view-layout/ )

In case the issue still persists, you're welcome to share temporary admin login details in reply to this message.
( I've set your next reply as private )

Important: Please make a complete backup copy of the website before sharing the access details.

regards,
Waqar

#1243492

Thanks I managed to achieved the desired result following your instructions - hidden link

Thank you very much 🙂

#1243549

You're very welcome Marian.

Thanks for the update and glad it is working now.

You can mark this ticket as resolved and for a new question/concern, please open a new chat or ticket.

We're here to help!

regards,
Waqar

#1243844

My issue is resolved now. Thank you!