Skip Navigation

[Resolved] List of IDs as view input

This thread is resolved. Here is a description of the problem and solution.

Problem:

Output post IDs as comma separated string.

Solution:

You can generate it using Views GUI, see screenshot:

https://toolset.com/wp-content/uploads/2019/07/toolset-views-loop-wizard-layout-options.png
option "List with separators"

Relevant Documentation:

https://toolset.com/documentation/user-guides/views/view-layouts-101/

This support ticket is created 4 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/Hong_Kong (GMT+08:00)

This topic contains 16 replies, has 2 voices.

Last updated by nicolaS-3 4 years, 5 months ago.

Assisted by: Luo Yang.

Author
Posts
#1653573

Q1) is it the filter to act as select DISTINCT, correct ?
Yes, the filter acts as select DISTINCT

Q2) Above codes was generate using Views GUI, see document:
https://toolset.com/documentation/user-guides/views/view-layouts-101/
screenshot:
https://toolset.com/wp-content/uploads/2019/07/toolset-views-loop-wizard-layout-options.png
option "List with separators"

Q3) There isn't any limitation for the IDs passed.
But since it is using 3 nested views, there might be some performance problem, you will need to increase your server limitation:
https://wordpress.org/support/article/editing-wp-config-php/#increasing-memory-allocated-to-php

#1653941

My issue is resolved now. Thank you!