Hi there,
I have built this page - hidden link - which list all the post without any issue using the DIVI module. Post #3 and #7 from the top are protected by YITH Membership plugin which prevent a non member from accessing the full the content of the post. But at least the image, title and part of the text is being shown since they are not protected.
I would prefer to use a Toolset View to do the same as it gives me much freedom/power. I have built a quick view with just the post title on this page - hidden link - and as you can see on post #3 and #7 the view returns the alternate block content since it can't access the post or some content of the post due to the YITH Membership plugin. From what I understand Toolset View must be accessing the post in a different manor than the above. Is it possible to get the same behaviour from the Toolset View?
Thanks,
Phil
hidden link
Hello,
If the YITH Membership plugin is based on WordPress user role, then you can use shortcode [toolset_access] of Toolset Access plugin to display different contents for different user role, for example:
[toolset_access role="Subscriber"]
You are Subscriber user, here display something ...
[/toolset_access]
You can setup above shortcodes within UI, for example, create a Toolset content, edit with classic editor, there is a button "Access", you can use it to setup the shortcode [toolset_access], see my screenshot toolset_access.jpg
And you can download Toolset Access plugin here:
https://toolset.com/account/downloads/
click link "Download Toolset manually "
Hi Luo,
Thanks for your reply. I am fully aware of Toolset Access and have used it on some occasion. I must admit that the YITH Membership plugin is more user friendly and provide few extra function that Access doesn't cover, which is the reason for using it.
I just have a hard time understanding why Toolset View can't retrieve the content from a post wich is not protected (like Title) while standard WP does it without any issue. Can we do anything to make View works like the others?
Thanks,
Phil
Since I don't have a copy of "YITH WooCommerce Membership" plugin in my localhost, so I am not sure why Toolset View can't retrieve the content from a post.
Please provide a copy of your website in below private message box, also point out the problem post URL.
https://toolset.com/faq/provide-supporters-copy-site/
I need to test and debug it in my localhost, thanks
Thanks for the details, I am downloading the files, will update here if find anything
I have tried to install the duplicator package file in my localhost, but get below error message:
The installer has detected that this server is possibly in a managed hosting setup. The followings checks have been made which will not allow the installer to continue.
So the duplicate package isn't valid to install, I am trying to export the database dump file from your website directly, will update here if it works in my localhost
Hi Luo,
I am on WPEngine and I know they don't like Duplicator. I have just created a ZIP from last night backup and can share it. Can you make the next message private so that I can share the link.
Private message box enabled
I can install the package files in my localhost.
The YITH Membership plugin is designed to hide those posts from non member, it add filters/actions into into WordPress built-in action/filter hooks, Toolset Blocks/Views is using WordPress built-in class WP_Query to query posts, so those filters/actions will take effect on Toolset Blocks/Views, so we can not change their codes to achieve your request.
I suggest you check it with YITH Membership plugin support, check if there is any way to remove their filters/actions in frontend, and apply it into Views filter hook "wpv_filter_query", see our document:
https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_query
My issue is resolved now. Thank you!