• Resolved fmarzocca

    (@fmarzocca)


    Hi,

    I made a custom page template and the plugin does not restrict the content on it! What am I missing? This is the main reason why I am using this plugin, to restrict content on my custom page template…

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    Without seeing the code in your custom page template, it’s hard to say. Please post a copy of it on gist.github.com and share a link to it.

    Thread Starter fmarzocca

    (@fmarzocca)

    No problem. AS I was just in the need of restricting content to logged-in users, I have fixed putting this code in the top of my custome page template:

    if ( is_user_logged_in() ) {
         mhp_bycategory();
      } else {
        echo 'Content available only for logged-in members!';
    }

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Not working on custom page template’ is closed to new replies.