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.
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