Simple Membership Plugin › Forums › Simple Membership Plugin › Pages accessed if not logged in
- This topic has 4 replies, 2 voices, and was last updated 8 years, 6 months ago by
frankj.
-
AuthorPosts
-
May 22, 2018 at 8:32 pm #14476
frankj
ParticipantEven if im logged out, adding a needed level in the page, using a custom template page of course, lets me see the content.
Can’t figure out why , it’s not even triggering the logs and log-auth that WPSM creates…
May 22, 2018 at 9:12 pm #14477The Assurer
ModeratorIs your site using any kind of page caching plugin?
May 22, 2018 at 10:17 pm #14478frankj
Participantyes but not the issue, if i move the post back to default template it works..
so theres a auth ? function not being read in my custom template ?
here is all of the template.
<?php /** * Template Name: Template Membres Accueil * @package underscores */ ?> <?php get_header(); $champs_customs = get_fields(); ?> <main class="contact section"> <div class="bglignes"> <div class="lignesblanches"> </div> <div class="lignesblanches"> </div> <div class="lignesblanches"> </div> <div class="lignesblanches"> </div> <div class="lignesblanches"> </div> </div> <section class="section-contact group" id="contactsection"> </section> <section class="sectionformulaire"> <div class="formulaireinfos span_6_of_10"> <h2>Zone Employés</h2> Lien vers boutique </div> </section> </main> <?php get_footer(); ?>May 22, 2018 at 10:56 pm #14479The Assurer
ModeratorCaching ***IS*** an issue with SWPM…
https://simple-membership-plugin.com/wp-super-cache-compatibility-simple-membership/
https://simple-membership-plugin.com/w3-total-cache-compatibility-simple-membership/
Also, are you trying to design your own theme? Which template file did you post?
May 23, 2018 at 10:44 am #14483frankj
Participantyes its a custom theme, that template is the template for the protected page.
https://developer.wordpress.org/themes/basics/template-hierarchy/
https://en.support.wordpress.com/pages/page-options/
if i switch back to default template, then i see “This post is protected” if not it just shows it, so theres a trigger not happening, i disabled caching to be sure, and cleared cookies.
what i need to do is force that php to call the get auth part ?
-
AuthorPosts
- You must be logged in to reply to this topic.