Ready to get started?Download WordPress


Sideways8 Private Pages
[resolved] Adding comments to custom page template (3 posts)

  1. wmetellus
    Posted 1 year ago #


    Thanks so much for this awesome plugin. I am currently using it to build a client portal, where clients can log into a page just for them and comment on images uploaded by an admin.

    I was able to add the comment PHP to the custom template but the comments keep showing up as closed. Do you know what I might be missing? I tested this out on pages that aren't using S8 Private Pages and the comments worked normally.



  2. David Wood
    Plugin Contributor

    Posted 1 year ago #

    Comments are currently not supported, I will look into adding this as an option in a future update. Until then, in the plugin files in 's8-private-pages.php' around line 91 shortly after the line saying 'function register_cpt() {' there will be a line that says 'supports' => array( 'title', 'editor' ),, simply change that to 'supports' => array( 'title', 'editor', 'comments' ), and since you already have the comments added to your template they should start working. Hope this helps!

  3. wmetellus
    Posted 1 year ago #

    Hi David,

    Thanks so much for getting back to me. I was actually able to get this to work by using a custom template I named client-page.php and disqus plugin. Instead of using the native WP comment php block I used the one for disqus and that worked perfectly.

    Thanks again for this great plugin!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic