Display Comments as the Content of a Blank Page
-
I’m trying to display comments dynamically on a blank wordpress page.
The page itself contains the following PHP code where the comments should go:
<?php global $wp_query; if (isset($wp_query->query_vars['myvar'])) { comment_reply( $wp_query->query_vars['myvar']); } ?>
The link to this page that contains the ‘myvar’ variable is:
https://localhost/?page_id=148&myvar=54
However this method isn’t working for me. Any suggestions on what I might be doing wrong?
- The topic ‘Display Comments as the Content of a Blank Page’ is closed to new replies.