Hi there,
I am trying to create a view of all posts to a custom post type by the current logged in user. It works on a normal page, but if I include the View inside WooCommerce Membership content restriction tags, it breaks the page. The content restriction tags work fine without the View included.
I hope you can help.
Many thanks,
Andrew.
Not sure what "breaks the page" exactly depicts, it is important for me to know what exactly is happening and what is expected.
If you put a string in the WooCommerce Membership content restriction tags, is that string showing when expected?
If so, then I assume, the View instead of showing when expected simply does not show?
That could be due to the 3rd party Plugin resetting the current user data.
Can you try an HTML condition as supported by Toolset and elaborated here to solve the issue?
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/
I assume the WooCommerce Membership content restriction tags checks upon a membership, which maybe is stored in User Meta, so you could use HTML conditions to check upon that user meta.
Or, you can use Toolset Access ShortCodes but those will only work with Roles set up by Toolset Access.
Once I know more about the exact steps taken and expectations not met, I will eventually be able to replicate the issue and give a hint on how to solve it.