Skip Navigation

[Resolved] When the MemberPress plugin is activated, one of my views doesn't work.

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

Last updated by Waqar 1 year, 5 months ago.

Assisted by: Waqar.

Author
Posts
#2641521
works-when-memberpress-deactivated.gif

Tell us what you are trying to do?
I have a filter set up at hidden link. The filter will usually display various years. However, when the MemberPress plugin is active, all the same years are displayed

Is there any documentation that you are following?

Is there a similar example that we can see?

Yes, here is another example that works well (no MemberPress plugin) - hidden link

What is the link to your site?
hidden link

#2641609

Hi,

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

To troubleshoot this, I'll need to see how this view and its filters are set up in the admin area.

Please share temporary admin login details, in reply to this message.

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

regards,
Waqar

#2642707

Thank you for sharing the access details.

I noticed that the taxonomy view 'View Films - Filters', is being used to generate the list of year terms for filtering. The view was set to use this shortcode in the loop editor section to load the content template for the loop items:
( ref: https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-post-body )


[wpv-post-body view_template="loop-item-in-view-films-filters"]

I included the attribute suppress_filters="true" to these shortcodes so that third-party filters from the active theme or other plugins, don't affect this content template's output:


[wpv-post-body view_template="loop-item-in-view-films-filters" suppress_filters="true"]

After this change, the year term's list is getting generated correctly.

#2642969

Thanks much. I didn't know about this attribute. All is well again.

Cheers