wordpress snippets last updated   : October 6, 2014
we now have 641 snippets
category comment

Automatically link twitter usernames in posts

wordpress snippet

Excellent snippet by Paul Underwood that will automatically link twitter usernames in your posts. This snippet will look for text like @wpsnipp and convert it to <a href="http://twitter.com/wpsnipp">@wpsnipp</a> something I’m sure many of you will find useful.

read more

Require minimum comment length in wordpress

wordpress snippet

wordpress-require-minimum-comment-length

    Add this great snippet by Paul Underwood to the functions.php of your wordpress theme and require a minimum comment length. Anything under the limit will return an error message using wp_die “All comments must be at least 20 characters long.”

    read more

    Stop Disqus from outputting JS on anything but single posts or pages

    wordpress snippet

    Disqus outputting JS on parts of your wordpress website you don’t want? Adding this snippet to the functions.php of your wordpress theme will only output JS on is_singular posts or pages where comments are available.

    read more

    Remove / unset URL field from comment form

    wordpress snippet

    Removing the URL field from your comments form is a simple snippet just add this code to the functions.php of your wordpress theme to remove the URL / website field.

    read more

    Display comments in admin to authors own posts only

    wordpress snippet

    Only show the comments to the authors own posts within the wordpress admin, hide all other comments. This is a great little snippet if you want authors to look after their own comments. Just add this snippet to the functions.php of your wordpress theme and you are ready to go.

    read more

    Display user with the most comments with count, email, author url

    wordpress snippet

    Adding this snippet to the functions.php of your wordpress theme will let you display the top commenter list of users. Use $result->comment_author_email, $result->comments_count, $result->comment_author_url, to add additional parameters to this snippet.

    read more
    jqsnipp.com | we just launched jquery snippets website