Display DISQUS on homepage

Hook it in from your child themes functions file or add the template tag to a front-page.php file Untested add_action(‘loop_end’,’disqus_front_page_after_loop’); function disqus_front_page_after_loop() { if (is_front_page() && function_exists( ‘comments_template’ ) ) { comments_template(); } } Change the loop_end hook to another WordPress or theme specific hook. If using the template tag, you might want to try … Read more

Trouble figuring out how to get my button to submit comment

Try this. You were missing the tags and the “type” attribute for the tag. The php tag at the bottom echo’s the result that was input in the textarea. Read this http://www.w3schools.com/html/html_forms.asp it should help you get started. <div class=”font-wrap”> <div class=”wrapper”> <form action=”” method=”post”> <textarea name=”comment” id=”comment” class=”talk-bubblecomment” tabindex=”4″ placeholder=”Enter comment…”></textarea> <p class=”sign-in”> Post … Read more

member login using photo

You could use a plugin like SB Welcome Email Editor to edit the welcome message. You can use HTML here, so adding an image is easy. To make sure only invited members can see the site untick the Anyone can register setting on wp-admin/options-general.php and install a plugin like Members to require users to log … Read more

isset($_POST[‘submit’]) ignored on comment submission

This might not directly answer your question (because I haven’t even thought about why the $_POST[‘submit’] would be ignored or if it is even correct), but you should use filters/actions whenever possible. The correct filter for filtering comment text is pre_comment_content, and you should use it like this: function my_filter_comment_for_swear_words( $comment_content ) { // Verify … Read more

Get Comment With Meta value

WP_Comment_Query doesn’t pull comment meta. You can search by comment meta but the query doesn’t return that data. You could easily check this yourself by looking at the Codex. You need to loop over the results and run get_comment_meta(), or essentially do the same via a filter on the_comments. It is also possible to add … Read more

Function to get a list of all comments on 1 post [closed]

You should use get_comments( $args ) and add the post ID in the arguments ($args) array: $post_id = 1; // post ID here from the submitted data $comments = get_comments(array( ‘post_id’ => (int) $post_id )); // dump the comments found print_r( $comments ); That would get you a comments list on that post. Hope that … Read more