Wordpress - comments_template().

I am currently trying to work with an outdated wordpress addon and I wish to add the functionality to allow commenting on certain pages.

However each page url looks like:


So when I post comments on a page they are displayed okay, however when a comment is made it appears in the 3 pages listed above rather just the one page the comment was made on.

So my question is how do I make it so comments_template() sees match=1,2,3, etc as individual pages rather than the same page with just different get statements.


The URL structure is:


Each URL displays different information depending on the number of match and I want separate comments on each match.

  • Please provide some details what that URL structure means and how is it implemented.
    – Rarst
    Commented Mar 17, 2012 at 20:42
  • Updated a little bit, is that what you wanted to know?
    – Rambomst
    Commented Mar 17, 2012 at 21:02

1 Answer 1


As far as WordPress is concerned, the individual match pages are the same page, the presence of your GET var is meaningless to WordPress.

option 1 - make the individual matches unique objects, such as additional pages or a custom post type.

option 2 - hook comment_post and update_comment_meta when a comment is submitted to store the associated match id the comment was entered on as meta data. you'd then filter comment output in your wp_list_comments callback to only display comments with meta value that matches the current match.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.