Skip Navigation

[Resolved] Extra space character in View of taxonomy terms

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

Problem: I have a View of taxonomy terms, separated by a comma. There is an extra space appearing after each term.

Solution: Remove all the line breaks and spaces between the wpv-loop and wpv-item tags in the Loop Output editor.

This support ticket is created 6 years, 7 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by Laura Savard 6 years, 7 months ago.

Assisted by: Christian Cox.

Author
Posts
#742973
Screen Shot 2018-04-26 at 9.50.49 AM.png
Screen Shot 2018-04-26 at 9.45.56 AM.png

Christian,

This is an old topic you helped me with, but I'm not noticing that in the loop output for the "related terms view" There is a space showing up before each comma that separates the related terms (see attached screen shots). I cannot find where this space is coming from.

hidden link

Thanks again!
Laura

#742979

Hi Laura, you can try removing the spaces and line breaks between the wpv-item tags like this:

[wpv-item index=1][wpv-post-link][wpv-item index=other], [wpv-post-link]
#743078
Screen Shot 2018-04-26 at 9.58.29 AM.png

Just putting all of those elements on one line did not resolve the issue, but based on that recommendation, I tried compressing it even further by putting it all on the same line as <wpv-loop>, which worked perfectly (see attached).

Thanks!!