Skip Navigation

[Resolved] Displaying the output of taxonomies

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

Problem:
Displaying the output of taxonomies terms in separate lines

Solution:
You can use the "Fields and Text" block and add the [wpv-post-taxonomy] to it with "separator" attribute that will allow you to control the separator.

For example:

<div>
  [wpv-post-taxonomy type="delivery-of-session" format="name" separator="</div><div>"]
</div>

You can find the proposed solution in this case with the following reply:
=> https://toolset.com/forums/topic/displaying-the-output-of-taxonomies/#post-1800215

Relevant Documentation:
=> https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-post-taxonomy
=> https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-post-taxonomy-iterator

This support ticket is created 4 years, 1 month 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by brianC-15 4 years, 1 month ago.

Assisted by: Minesh.

Author
Posts
#1798699

Tell us what you are trying to do?
I want to display the output of the taxonomies field at a vertical list not a horizontal list seperated by commas.

I've tried using <br/> as the separator which works on the back end but not on the front end

Is there any documentation that you are following?
No

Is there a similar example that we can see?
hidden link

Yes all the output on the 'Therapists profiles' side bar should be a vertical list e.g.

We Can Meet
Face to face, Online, Other (telephone/messaging etc) <b> (this is how it currently looks)<br/>

I want this

We Can Meet
Face-to-face
Online
Other (telephone / messaging etc)

What is the link to your site?

hidden link

#1800215

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

With the content template that you are using to display the profile post content:
=> hidden link

I've replaced the Single Field block using which you display the taxonomy with the "Fields and Text" block and added the following code to the "Fields and Text" block:

<div>
  [wpv-post-taxonomy type="delivery-of-session" format="name" separator="</div><div>"]
</div>

I can see now under section "We can meet" terms are listing with new line:
=> hidden link

If you want to display other taxonomy terms with new line you can just add the "Fields and Text" block and add the [wpv-post-taxonomy] shortcode as shared where you will require to change the taxonomy type (name).

#1800375

Thats increadibly helpfull and I now have learnt something new and have also tried out making the list into a bullet list, which worked and I know now how I can style it.

As always, thank you to all of you at toolset, what a great team you are.

Regards

Brian

#1800411

The team at Toolset are so helpful, you don't annoyed at silly little questions or my obvious ignorance at some level of website building.

My issue is resolved now. Thank you!