{"id":2479135,"date":"2012-01-01T05:22:22","date_gmt":"2012-01-01T05:22:22","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/custom-comments-query\/"},"modified":"2016-08-20T04:07:37","modified_gmt":"2016-08-20T04:07:37","slug":"custom-comments-query","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/custom-comments-query\/","title":{"rendered":"custom comments query"},"content":{"rendered":"<p>I hoping someone can help me. I am trying to create a authors profile page which also displays a users recent comments. Problem is the query keeps showing the same comments in every post when I do a query on the database. <\/p>\n<p><code>SELECT comment_ID, comment_post_ID, comment_content, post_title FROMwp_posts,wp_comments WHERE comment_author_email = &#039;email@email.com&#039;<\/code><\/p>\n<p>So the result is its showing the comments but with the wrong post title.<\/p>\n<p>Here is my author.php<br \/>\nhttp:\/\/pastebin.com\/pMPnvpFR<\/p>\n","protected":false},"template":"","class_list":["post-2479135","topic","type-topic","status-closed","hentry","topic-tag-comments","topic-tag-post-title","topic-tag-query"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/2479135","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/2479135\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=2479135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}