Skip Navigation

[Resolved] View showing on Post page but not on Category page

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

Problem:

Views does not work in some other Category archive pages.

Solution:

The problem is abnormal, please try these:

https://toolset.com/forums/topic/view-showing-on-post-page-but-not-on-category-page/#post-1220161

Relevant Documentation:

This support ticket is created 5 years, 9 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
- 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/Hong_Kong (GMT+08:00)

This topic contains 4 replies, has 2 voices.

Last updated by liatG 5 years, 9 months ago.

Assisted by: Luo Yang.

Author
Posts
#1219912
Screenshot_Liat 2019-03-23 at 12.37.47 PM.jpg
Screenshot_Liat 2019-03-23 at 12.37.29 PM.jpg

Hi there,
I have a sidebar widget that displays HTML. I have it set to display a View.

Widget contents:

[wpv-view name="blog-categories-for-sidebar"]

When I go to a Post (e.g. hidden link), the list of Categories shows up as expected in the sidebar.

But when I go to the main Blog page (hidden link) or a Category page (hidden link), where I am using the exact same sidebar, the View is empty. It doesn't say "no items found" - it just doesn't display anything.

Attached are screenshots for the View. There are no filters set. It seems like this should be quite straightforward.

Can you tell me why nothing is showing up in the Views when shown on Category pages or my Blog page? Thanks!

#1220161

Hello,

The problem you mentioned above is abnormal, please try these:

1) Make sure you are using the latest version of Toolset plugins, you can download them here:
https://toolset.com/account/downloads/

2) In case it is a compatibility problem, please deactivate other plugins, and switch to wordpress default theme 2019, deactivate all custom code snippets, and test again

3) If the problem still persists, please provide database dump file(ZIP file) of your website, also point out the problem page URL and view URL, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/

#1220352

Thank you so much! I will try these troubleshooting steps and get back to you.

Cheers,
Liat

#1220581

Dear Liat,

Please update this thread if you need more assistance for it.

#1221069

I tried the troubleshooting steps you described but couldn't solve the issue.

I was able to solve the problem on my own by placing the contents of the Content Template directly in the Loop Editor, bypassing the Content Template.

Thank you!