I'm using Toolset for a site that proposes content for members.
Memberships, members and restricted content are managed by MemberPress.
In the content type archive I've created for restricted content, posts are displaying excerpt and you need to login to see all the content. If user is not logged in, a message is displayed to explain that the article is only available for members.
I've made a test to display different message per taxonomy term.
After updating Toolset plugins, my conditional elements added to the custom post archive don't show anymore.
Below is the code used to test the taxonomy of post (Toolset shortcode) and if the user is logged in (memberpress shortcode):
[wpv-conditional if=" ( ( '[wpv-post-taxonomy type="collection-publication" format="name"]' eq 'Sentinelle' ) ) " ]
[mepr-hide rules="12316"]
<div class="excerpt-allow">
[wpv-post-excerpt length="200" more="…"]</div>
<div class="for-subscribers sentinelle">
<p class="alert">Réservé aux abonnés Sentinelle</p>
<p class="links"> Je m'abonne
</p>
</div>
[/mepr-hide]
[mepr-show rules="12316"]
<div class="excerpt-allow">
[wpv-post-excerpt length="200" more="…"]</div>
<p class="read-more"> Lire la suite
</p>
[/mepr-show]
[/wpv-conditional]
[wpv-conditional if=" ( ( '[wpv-post-taxonomy type="collection-publication" format="name"]' eq 'Focus' ) ) " ]
[mepr-hide rules="12317"]
<div class="excerpt-allow">
[wpv-post-excerpt length="200" more="…"]</div>
<div class="for-subscribers focus">
<p class="alert">Réservé aux abonnés Focus</p>
<p class="links"> Je m'abonne
</p>
</div>
[/mepr-hide]
[mepr-show rules="12317"]
<div class="excerpt-allow">
[wpv-post-excerpt length="200" more="…"]</div>
<p class="read-more"> Lire la suite
</p>
[/mepr-show]
[/wpv-conditional]
Hello. Thank you for contacting the Toolset support.
Can you please share problem URL where I can see the issue as well as admin access details.
Do you mean before update it used to work and now it stop working?
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
Can you please convert your conditional statements with CONTAINS() rather using [wpv-post-taxonomy] shortcode on the following page where you added your view:
=> hidden link