Skip Navigation

[Resolved] View with taxonomy filter not working for some tags

This support ticket is created 2 years, 2 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 14 replies, has 2 voices.

Last updated by Luo Yang 2 years, 1 month ago.

Assisted by: Luo Yang.

Author
Posts
#2595515

We have a view to show events (tribe events) ordered by event date and filtered by event tag.

We have this view on two pages, one of them shows the events but the other does not. There are 5 events assigned to this tag but none of them are showing. Checking with other tags as well and sometimes it only show some events but not all. Events are all published and visible on the site.

The slug of the page matches the slug of the tag, so I don't believe that's messing with the view. Also tried creating a new tag and re-assigning the events but it didn't work either (following what another user did on this thread https://toolset.com/forums/topic/taxonomy-filter-not-working-for-a-particular-tag/).

Page where filter works: hidden link
Page where filter doesn't work: hidden link

#2595863

Hello,

I assume we are talking about "The Events Calendar" plugin.
How do you setup the events and the filter in the post view?

Here is a sandbox website:
Login URL: hidden link

Can you reproduce the same problem in above sandbox website?
I need to test and debug it in a live website, thanks

#2597077

Thank you, I've added Toolset Views and imported what we have. The one we're having trouble with is the " Events by Tag (4 Columns) with pagination" view.

#2597165

I have tried these in above sandbox website:
1) Create two event posts, assign different tags:
hidden link

2) Create a new post view:
hidden link
- Query event posts
- Filter by:
Select posts with taxonomy:
Tags slug in one of those set by the View shortcode attribute wpvposttag
eg. [wpv-view name="view-name" wpvposttag="xxxx"]
- In views loop, display event post information

3) Create a new page, display above post view;s shortcode, like this:

wpvposttag="taga":
[wpv-view name="view-with-taxonomy-filter-not-working-for-some-tags" wpvposttag="taga"]
wpvposttag="tagb":
[wpv-view name="view-with-taxonomy-filter-not-working-for-some-tags" wpvposttag="tagb"]

It works fine in frontend:
hidden link

Can you recreate the "Events by Tag (4 Columns) with pagination" view in your website, and test again?

#2597469

I recreated the view on our site but still running into the same issue. We've setup a test version of the site, I can send credentials for you to have a look.

#2597551

Please backup your website first, and provide your website credentials in below private message box:

#2598307

Thanks for detail, I am checking it in your testing site, will update here if find anything

#2598319

I can see the problem in your testing website, and I have tried the same tag name "living-lab" in the sandbox website:
hidden link

It works fine.

Can you provide your website database dump file in below private message box, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/

#2598901

Thanks for the details, I am downloading the files, will update here if find anything

#2598907
living-lab.jpg

I can install the database dump file in my localhost, it works fine.

See my screenshot living-lab.jpg

So there should be other compatibility issues in your website, please try these:
deactivate all other plugins, and switch to WordPress default theme 2022, and test again.

If you need assistance for it, please provide your staging website FTP/SFTP access in below private message box

#2599169

All themes and plugins except for Toolset or off on the testing site, seeing the same issue. What version of php and wordpress is your localhost on?

#2599375

I am using WordPress 6.2 + PHP 7.4 in my localhost, private message box enabled again, If you need assistance for it, please provide your staging website FTP/SFTP access in below private message box

#2600011

Thanks for the details, I have tried these:
1) Add a event post:
hidden link
setup the "End date" value above today
2) Test it in frontend:
hidden link
I can see it in frontend.

And in your website, there is an extra custom field filter:

[tec_event_end_date] => Array
                        (
                            [key] => _EventEndDate
                            [value] => 2023-04-27 03:16:01
                            [compare] => >=
                            [type] => DATETIME
                            [compare_key] => =
                            [alias] => mt2
                            [cast] => DATETIME
                        )

It can only outputs event posts are ended after today's date.

But this filter does not exists in my localhost, do you have any clue, where do you setup such kind of filters?

#2602163

That shortcode is coming from The Events Calendar plugin.

#2602769

According to "The Events Calendar" document:
hidden link

By default, the main calendar page will only show current and upcoming events, but the good news is that with a bit of thought, you’ll be able to display your past events for your users.

It is "The Events Calendar" plugin added the filter, so Views can only output event posts are ended after today's date.

You can display those passed events posts with URL parameter: eventDisplay=past, for example:
hidden link