Skip Navigation

[Resolved] Broken characters added after Taxonomy URL Slug in Views/Blocks

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.

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 2 replies, has 2 voices.

Last updated by Minesh 4 years, 1 month ago.

Assisted by: Minesh.

Author
Posts
#1957167

I have my breadcrumbs and other layout assets generated from custom Views that pull specific parts of the taxonomy structure.

Example Breadcrumb: Rehabnow.org (main link) > Wisconsin (Parent Taxonomy Slug View) > Appleton (Child of State Taxonomy Slug View) > Center Page (Current Post/Page)

But recently, the slug URL is not pulling correctly, and is adding "%0A%09%0A%09%0A%09%0A%0A" after the slug, example:
hidden link

On the content template using the view, there are no characters after the ] bracket closing the view, within the views there are no characters or spaces after the <wpv loop> which only contains [wpv-taxonomy-url] and has DIV wrapping and filter/search disabled.

It started randomly, and I have rebuilt the views, enabled and disabled every plugin, changed to the default theme, and dug deep into each taxonomy (which also do not have additional characters in the slug) and have found no solution.

Link to a page where the issue can be seen: hidden link

This center is using a custom template where I put the views code in the 'facility summary' box, as well as in the breadcrumbs.
- In the 'Facility Summary' box, the shortcode works properly, there is no additional text after the URL.
- In the breadcrumbs, SAME VIEWS SHORTCODES, the additional characters appear.
- The additional characters appear using the SAME VIEWS SHORTCODES in the 'Treatment Facilities Similar to Amethyst Recovery Center Near Port Saint Lucie, Florida' box as the URL is at the end of the H3 tag.

It seems like it only breaks when it's wrapped in an HTML tag, which I can't really get around as the 'Taxonomy URL' function doesn't add the required text after for SEO purposes.

I have tried to enter these in Custom HTML Blocks, Classic Blocks with Views Shortcode inside, and Text / Views Blocks, as well as minifiying the HTML in the Custom HTML block.

I expected to see:

The proper URL's listed as it does in the 'Facility Summary' content block.

These views/slugs are used elsewhere on the site on other content pages (State Pages, City Pages, Home Page) and are wrapped in HTML and work just fine.

#1957397

Can you make this ticket private? At least the screenshot and the page title examples used?

#1958219

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

I've removed the image you shared.

I see you are using the following content template to display your navigation:
- hidden link

When I checked the navigation section, I see the view you added is malformed.

So, for the states section I've corrected that as given under:
<code
<li itemprop="itemListElement" itemtype="hidden link" class="breadcrumb-item">

[types field='ws-nap-address-state-full'][/types] Drug Rehabs

<meta itemprop="position" content="2">

[/php]

I can still see with your other section the anchor tag where you added the view is malformed. You should correct it.

Also, with the view that displays the states, within the "Loop Editor" section, I've removed the trailing space, please check the "Loop Editor " section where I removed the all the space at the end. You should remove such space with your other views as well.
=> hidden link