Forums

[resolved] Showing the same comments on mutiple pages (3 posts)

  1. aphill70
    Member
    Posted 2 years ago #

    I am trying to create a site that shows the same comments on two different pages, however i have been unable to find a way to override the setting that puts only comments from one page to that page only.

    my comments.php is a modified version of the defauld using

    wp_list_comments()

    i tried to pass in the page parameter however the codex doesn't explain what it does and i couldn't get it to work...

  2. xtole
    Member
    Posted 1 year ago #

    having the same problem, though my issue changes based on if i am logged in. for example: 1 comment posted on page A, 1 comment posted on page B, both are displayed properly, however the comments on page A and B are also shown on page C. if i log in, then it says comments are currently disabled.

    dunno?

  3. aphill70
    Member
    Posted 1 year ago #

    <?php  foreach(get_comments('page_id=88') as $comment) : ?>
    
        <?php  mytheme_comment($comment, "", ""); ?>
        </div>
        <?php  endforeach; ?>

    I used this the mytheme_comment() function is a custom comment output callback used elsewhere in my site with wp_list_comments().

    Hope this helps somebody

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags