• Ciprian

    (@cipriandoroftei)


    Hi Chad,

    I have a custom template page that does not use the $content, so blocking it does not have any effect.

    Is it possible, in the backend to wrap the content of this page in an if statement or something in order to make the restriction apply?

    Thanks

    https://wordpress.org/plugins/wp-members/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    Hi @ciprian – you know you are a premium support subscriber. I’ll see your question a whole lot sooner if you use the rocketgeek.com support site. Either use the contact form – when logged in, these are tagged as priority support, or use the forum.

    The answer is really dependent upon how the content is generated. If it’s some kind of builder plugin, such as Page Builder or Elegant Builder, then you can use the process described here: http://rkt.bz/pD

    If it’s something in the template, there’s some info on working with custom templates here: http://rkt.bz/5D Some of this is a little dated (using Twenty Ten), but the concepts still apply.

    Thread Starter Ciprian

    (@cipriandoroftei)

    Yep, I know about the priority support for the premium subscriber, but since I was browsing here for the answer and you do help with most of the tickets here, I just posted here.

    Unfortunately the suggestion did not work. I’m in the situation where everything is done in the template. But, I’m using ajax to pull the info so if the user is not logged in, then ajax won’t run, plus I can always password protect the page itself or even use is_user_logged_in() to hide all the fields.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Block custom template page without $content’ is closed to new replies.