• Resolved qeyduey

    (@qeyduey)


    Hello Gabriel,

    Thanks for a great and simple plugin. We are having just one issue:

    Is it possible to create an actual private “page” and not a private “post”? I think this would be much more useful for our use-case and that is what we thought we’d be able to do given the name of the plugin.

    Thanks in advance for your help with this.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello @qeyduey

    Here is how the Client Portal private page template works:

    If your theme has a single-private-page.php file in the theme’s root folder, then that one is used.

    If there is no such file in your theme’s root folder, then single.php is used.

    That is your post template, and you probably don’t want that.

    So the way out of this is to create a single-private-page.php file that has the exact same content as the page.php file. That’s your page template.

    Making the long story short, you simply need to duplicate your theme’s page.php and name it single-private-page.php

    I hope this makes much sense.

    Please let me know if not, so that I can clarify.

    With the best of regards,
    Gabriel

    Thread Starter qeyduey

    (@qeyduey)

    Hey Gabriel,

    Thank you for the super quick response! =D

    That answers my question perfectly. Thank you, again!

    Glad to help @qeyduey

    If you can spare a few minutes of your attention, a review would sure help us greatly.

    Thanks,
    Gabriel

    Thread Starter qeyduey

    (@qeyduey)

    Hey Gabriel,

    It would be my pleasure! =D

    Thank you! ??

    Hi Gabriel,

    I have the exact same issue, and haven’t been able to solve it so far.

    I followed your intstructions, and created a single-private-page.php file, which is a copy of my page.php file. However, when creating a private-page I still get presented the post template.

    Any suggestions are more than welcome. I can’t seem to figure it out…

    • This reply was modified 5 years, 5 months ago by markkre.

    Hi there,

    Hopefully you’re doing it in your actual active theme.

    That’s the only thing that comes to mind.

    Up until now this has worked for everyone.

    Best of regards,
    Gabriel

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Create a Page and Not a Post’ is closed to new replies.