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

Show count comments under the title

First, you should look at creating a child theme. That way, any modifications you make won’t be removed by a WordPress update. Next, edit wp-content/themes/twentyseventeen/template-parts/post/content.php and look for the following code: if ( is_single() ) { the_title( ‘<h1 class=”entry-title”>’, ‘</h1>’ ); } elseif ( is_front_page() && is_home() ) { the_title( ‘<h3 class=”entry-title”><a href=”‘ . esc_url( … Read more

Incude comments in search

Whether you put custom code in your theme’s functions.php or in a plugin, you’re still using custom code. So I’m going to ignore your “without a plugin” requirement and instead suggest these two plugins: Search Everything Relevanssi There is absolutely no reason to use custom functionality in functions.php rather than a plugin. When you’re asking … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)