• Resolved ejm

    (@llizard)


    I’m using Krischan Jodies’ recent comments plugin and it’s working very well.

    But I’m trying to get it to show the comment post title as well. Being a rank beginner at php, I don’t know how to call the function for “$comment->comment_post_title”. This is as far as I’ve gotten:

    echo $comment_short;
    echo " <a href=\"".
    get_permalink($comment->comment_post_ID) .
    "#comment-$comment->comment_ID\">[$comment->comment_author in $comment->comment_post_title]";

    I hope my question made sense. When answering, please remember to include any relevant file and folder names. (In other words, assume that I need to have EVERYTHING spelled out.) Thank you. -llizard

Viewing 1 replies (of 1 total)
  • Thread Starter ejm

    (@llizard)

    excuse me for replying to myself. After contacting Krischan Jodies (plugin author) I received the help I needed. Here is the fix:

    echo $comment_short;
    $post = get_postdata($comment->comment_post_ID);
    echo " <a href=\"".
    get_permalink($comment->comment_post_ID) .
    "#comment-$comment->comment_ID\">[$comment->comment_author in $post[Title]]";

Viewing 1 replies (of 1 total)

The topic ‘encorporating post title in recent comments plugin’ is closed to new replies.