Link to a page where the issue can be seen: hidden link
We are testing MemberPress, which is a plugin to add a subscription paywall to your site.
We have some custom views that have worked well for us for a while
They are a View that displays all posts that have a custom taxonomy. This is the view loop
[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<wpv-loop>
<div class="three">[wpv-post-body view_template="Latest News Sidebar - single post"]
</div></wpv-loop>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-no-posts-found][wpml-string context="wpv-views"]No posts found[/wpml-string][/wpv-no-posts-found]
[wpv-layout-end]
And this is the Content Template for each Post
<li class="media"> [wpv-post-featured-image]
<div class="media-body">
<h3 class="media-heading">[wpv-post-link]</h3>
</div>
However when an article is protected by MemberPress it is instead displaying the excerpt, unauthorised message, and for the first article listed a login.
You can see an example here - I've highlighted in red where the protected articles should be, and they should display like the articles below them. hidden link
In MemberPress' rules I thought it might be because "All Content with...(the custom taxonomy)" was selected, but we changed to "All Posts with...(the custom taxonomy)" but it makes no difference.
I understand it is tricky for you to support every third party plugins, but I wondered if you can provide any clue why this might be happening?
Hello. Thank you for contacting the Toolset support.
Well - this behavior is related to memberpress plugin and not added by view's so better you should contact the memberpress plugin support in order to have correct direction on this issue.
Well - I do not have any solution to offer you at the moment as I do not know which code of memberpress filtering on the_content. Toolset also uses the standard the_content() function to display the content.
Hi - Yes the login box comes from Memberpress so if Memberpress is disabled then it would disappear. You can see this yourself. I have provided admin access to this site and it is a staging site so you are able to switch off plugins or change settings to get this displaying as it should.
You say it is not a Toolset issue, but as you suggest, it is a compatibility issue. We need to use both Toolset and Memberpress, and there must be a way to adapt Toolset. Please could you look into the information I have provided (particularly the Content Template) and see if there is an alternative way to create these views that do not get affected by Memberpress' rules.
Also, this view and content template were created many years ago so there may be a more up-to-date way of doing them
This is the view - hidden link
This is the content template - hidden link
This is where Memberpress sets the rules (see bottom section - unauthorized access) - hidden link
If you have questions for Memberpress support I can pass them on.
Could you please send me the link from where I can download the zip of memberpress pro plugin as I do not able to login to FTP using access details you shared with me.
I have set the next reply to private which means only you and I have access to it.
Ok - thanks for sharing the plugin zip. I will try to replicate things on my local test install and report your concern to next level support. I will get in touch with you as soon as I know more.
Well - I got the news that we can not do anything here. I checked restricted posts with default WP loop and even with standard WP loop its behaving the same - adding login form for restricted post - so its plugin that adds the login form and wrap even standard WP loop.
Toolset Views is just a wrapper for the native WP_Query. Now, if you wants to show posts in a native WP Query even if hidden by plugin (which displays login form instead of displaying post), then this is a request to make for that plugin.
As I claimed before - Toolset is not involved here.