WordPress.org

Ready to get started?Download WordPress

Forums

Help with $post and $comment (2 posts)

  1. randybrown
    Member
    Posted 9 years ago #

    To clarify, this plugin needs the post ID, as well as the comment ID, so I can't use a method like the "google_hilite" plugin - mine requires looking at each post and comment. I'd rather not do additional queries, as it seems inefficient.
    Any thoughts?

  2. randybrown
    Member
    Posted 9 years ago #

    I solved the problem by adding:
    add_filter('comment_text', 'wpautop');
    before the plugin calls it's own comment filter.
    But...: it seems that WP should be consistent in how it formats posts and comments for output. This would make it simpler for plugin authors to implement features.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.