Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact

[Support request] Pages accessed if not logged in

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.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • May 22, 2018 at 8:32 pm #14476
    frankj
    Participant

    Even 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 #14477
    The Assurer
    Moderator

    Is your site using any kind of page caching plugin?

    May 22, 2018 at 10:17 pm #14478
    frankj
    Participant

    yes 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&eacute;s</h2>
    
    Lien vers boutique
    
        </div>
    
      </section>
    
    </main>
    
    <?php get_footer(); ?>
    
    
    May 22, 2018 at 10:56 pm #14479
    The Assurer
    Moderator

    Caching ***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 #14483
    frankj
    Participant

    yes 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 ?

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Log In

Please read this message before using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Documentation

  • Documentation Index Page

Copyright © 2026 | Simple Membership Plugin | Privacy Policy