• Hello,

    I’m trying to add the Comments () link to pages.

    I can make the comments appear by adding the <?php comments_template(); ?>
    tag to the page.php template, but I want the comments to look like the comments on the post/main page,
    with the “Comments (2)” link that opens the comments instead of just a list of comments.

    I tried to add the <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?> to the page.php template, but it doesn’t seem to work.

    Any suggestions?

Viewing 4 replies - 1 through 4 (of 4 total)
  • I tried to add the <?php comments_popup_link(__(‘Comments (0)’), __(‘Comments (1)’), __(‘Comments (%)’)); ?> to the Page page, but it doesn’t seem to work.

    You mean to the Page template, a.k.a. page.php ?

    Edit. On a second thought – it will never work since the Pages are never listed in the way posts are shown on the index file.

    Thread Starter johnmike

    (@johnmike)

    yes, I’m sorry I wasn’t clear. I’m still learing the correct terminology.

    So does anyone know how to do this then? ie. Have the “Comments (#)” link appear on static pages like the do on regular posts?

    I am curious about this myself

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Formatting comments on pages.’ is closed to new replies.