• 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.

    SELECT comment_ID, comment_post_ID, comment_content, post_title FROMwp_posts,wp_comments WHERE comment_author_email = 'email@email.com'

    So the result is its showing the comments but with the wrong post title.

    Here is my author.php
    http://pastebin.com/pMPnvpFR

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘custom comments query’ is closed to new replies.