Skip Navigation

[Resolved] Create a list of posts on one line with commas

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.

Our next available supporter will start replying to tickets in about 6.70 hours from now. Thank you for your understanding.

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)

This topic contains 1 reply, has 2 voices.

Last updated by Waqar 1 year, 3 months ago.

Assisted by: Waqar.

Author
Posts
#2627555

I have 2 post types: Books and Authors. One book may have many authors. I want to create a list of authors in the template of Books. For example:

"
Book Name 1
Authors: Author Name A, Author Name B
"

With Author names are titles of Post Type Authors with their links. Commas separate them.

I thought this function was View, but I couldn't create it in one line and commas.

Please help me.

#2627565

Hi,

Thank you for contacting us and I'd be happy to assist.

A list with a minimal view output can be created, but only through the classic views and not block-based views.

If you are not already using them on the website, please go to WP Admin -> Toolset -> Settings -> General and for the "Editing experience" select "Show both the legacy and Blocks interface and let me choose which to use for each item I build".

After that, you'll be able to create a classic view from the WP Admin -> Toolset -> Views.

The documentation on the classic views is available at:
https://toolset.com/documentation/legacy-features/views-plugin/

To ensure minimal list output, without any extra empty spaces or HTML, you can follow these steps, when working with the view:

1. Remove all empty spaces and line breaks from the "Loop Editor" section, making sure all the tags in there are in a single line.

2. From the "Output Editor" section remove the shortcode "[wpv-filter-meta-html]" and check the option 'Disable the wrapping DIV around the View', which is available right above this section.

I hope this helps and please let me know if you need further assistance.

regards,
Waqar