Skip Navigation

[Resolved] View [Shortcode] with Taxonomy Filter Not Displaying Correctly on Website

This support ticket is created 4 years 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
- 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 8 replies, has 3 voices.

Last updated by melissaC-8 3 years, 12 months ago.

Assisted by: Waqar.

Author
Posts
#2274097
screencapture-staging2-visitduboiscounty-what-to-do-2022-01-24-08_09_35.jpg
Screen Shot 2022-01-24 at 8.09.21 AM.png

I am trying to display a single View on multiple pages using the Taxonomy Filter. The shortcode is working, but my styles are gone. As you see in the attached screenshot, the View is supposed to be 3 columns. But on the front end, the content is full-width, not 3 columns.

This is the article I was following: https://toolset.com/documentation/user-guides/views/filtering-views-by-taxonomy/

Here's a link to the live page where you can see the content is not displaying correctly: hidden link I've attached a screenshot as well.

#2274153

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

You created this View in the block editor, and so if you want to insert a copy of the View on another page (or in a template) you should also add it using the View block to preserve the styles. It sounds like you are mixing creating the View in the block editor with the legacy system of shortcodes.

Please be aware of a known issue that affects using copies of Views, however: https://toolset.com/errata/displaying-a-copy-of-a-view-block-misses-settings-styles/

#2274241

Hello Nigel! Thanks for the reply. If this isn't the best way to display custom posts of a specific taxonomy on a page, what is the best way to do this?

Note, I have nearly 50 pages that need post feeds. These are not archive pages, so I cannot create a template and achieve the results I am looking for.

#2274637

Hi,

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

Based on what you've shared, it will be better to create this view using the classic/legacy editor.

Please go to WP Admin > Toolset > Settings > General and select the option "Show both the legacy and Blocks interface and let me choose which to use for each item I build" for the editing experience.

After that, you'll be able to create classic/legacy views by going to WP Admin > Toolset > Views.

You'll find the documentation on using the classic views here:
https://toolset.com/documentation/legacy-features/views-plugin/
https://toolset.com/documentation/user-guides/views/

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

regards,
Waqar

#2276757
Screen Shot 2022-01-26 at 2.34.37 PM.png

Hi, thanks for the help.

I've followed your instructions and set up a new view in the legacy format. I have a taxonomy filter in place to achieve the results I need, but no matter what category slug/name I put in the shortcode, the same results show up. The taxonomy filter is not working.

I'm trying to avoid creating 50 different views.

I cannot find documentation to help me with this and the link to learn about "passing arguments to Views" on this page doesn't work: https://toolset.com/documentation/user-guides/views/filtering-views-by-taxonomy/

Attached is a screenshot of the filter I've set up.

I appreciate any guidance you can provide!

#2278227

Thanks for writing back.

To troubleshoot this, I'll need to see how this view is set up in the admin area.

Can you please share temporary admin login details, along with the example page with the view?

Note: Your next reply will be private and it is recommended to make a complete backup copy, before sharing the access details.

#2279845

Thank you for sharing these details, but, it seems that the admin area login is protected/hidden.

Whenever I try to access the regular login page, it redirects to the "404 not found" page.

Can you please also share the exact link that you use for the admin area login?

Note: I've set your next reply as private.

#2280639

The admin access details worked, thank you.

During troubleshooting, I noticed that the view "Legacy Feed" was configured correctly. But, since its shortcode was added in the visual tab in the text block, some extra HTML code was included by the editor:


<span>[wpv-view name="legacy-feed" </span><strong>tscategory="arts-and-culture"</strong><span>]</span>

I've added it in the text tab and the taxonomy filtering is working in the "Arts & Culture" page now:
( screenshot: hidden link )


[wpv-view name="legacy-feed" tscategory="arts-and-culture"]

#2280789

Thank you! I've never encountered issues with shortcodes in the visual tab before. They've always worked fine until now. I appreciate your help.