Show comments in Backend

I answered my question coincidentally in the comments section. Just put your self made comments in the right table: wp_comments and everything works like a charm… 🙂

HELP! Frontend User Profile Edit Won’t Update Email

Your code looks ok. Maybe this line: elseif(email_exists(esc_attr( $_POST[’email’] )) != $current_user->id ) Should be elseif(email_exists(esc_attr( $_POST[’email’] )) != $current_user->ID ) Every developer should start with learning how to debug code. Otherwise you’re just trying stuff like a headless chicken ;-). WP Debugging In your wp-config.php, change: define( “WP_DEBUG”, false ); Into: define( “WP_DEBUG”, true … Read more

Limit post top level categories to one

Late answer but I figured I’d throw in my idea since I had a similar problem recently. Basically I did this by injecting a script into the editor views. My function looked something like this: (function() { var o=function() { //add a click handler to category checkboxes jQuery(“#categorychecklist input”).click(function() { //get top-level category (in case … Read more

How to redirect from wp-admin/edit.php to a frontend page for specific custom post type?

OK, this, put in functions.php works for me, based on this question and answer: /* Send users away from wp-admin/edit.php to page with ID 999 for post type my_post_type */ add_filter( ‘parse_query’, ‘filter_post_edit_screen’ ); function filter_post_edit_screen($query) { global $pagenow; if (is_admin() && $pagenow==’edit.php’ && $query->query[“post_type”] == “my_post_type”){ wp_redirect(get_permalink(999)); exit; } return $query; } don’t know … Read more

Strange Popup Ad on my WordPress Admin Dashboard

It seems like a malware activity. To find who is generating that pop-up you can deactivate all other plugins, revert to a default theme like TwentySeventeeen and test again. Then, simply activate them back one-by-one checking each time the installation process until you get the pop up again. The plugin you mentioned shouldn’t be the … Read more

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