By default, adding the embed code or a link to a YouTube video in a comment form, won't display your video because the oEmbed discovery for
Comments
Tutorials in this archive contain code which enables you to create your own list of comments or modify existing comments functions. The code uses get_comments
and WP_Comment_Query
. Other functions included in these tutorials include get_comment_date
, get_comment_link
and get_comment_author_link
.
Using get_comment_date & get_comment_time In A Custom Comments Loop
When using get_comments or WP_Comment_Query to code your custom comments loop, you can add the date and time using any format strings
Open Comments On All or Any WordPress Post Type Globally
Add this code at the end of your functions file or template to open comments. Works in any theme. If you enable comments on pages &
2 Ways To Modify The Leave a Comment Text in Genesis Post Info
Both code snippets in this download folder enable you to modify the "Leave a Comment" text which displays in the post info entry header when
Redirect Comment Authors Based On Date
The 1st code snippet in the download folder redirects your comment authors to a specific page on weekends only. The 2nd snippet in the
Load Comments On Click In Genesis
This code enables you to pre load any number of comments and then load more comments by any number on button click. In this example, 2