Can’t hover on Submenu

Reading through your question, your submenu is on class,normally your hover style is working on.. so we can use a filter “nav_menu_css_class” on your functions.php file. add_filter(‘nav_menu_css_class’ , ‘special_nav_class’ , 10 , 2); function special_nav_class ($classes, $item) { if (in_array(‘current-menu-item’, $classes) ){ $classes[] = ‘active ‘; } return $classes; } it would be more easy … Read more

Creating a “walled garden” of comments

Some suggestions, added as comments: function filter_the_comments( $array ) { $comment_IDs = array(); foreach ( $array as $key => $val ) { //assuming the comments are sorted by date in ascending order, a parent has to come before the child comment, so there is no need to wait till all subsequent IDs have been added … Read more

Order comments in admin by custom date

I found the solution and happy to share the code: function cws_pre_get_comments( $comments ) { $comments->query_vars[‘meta_key’] = ‘datum_van_uitvoering’; $comments->query_vars[‘orderby’] = ‘meta_value_num’; $comments->query_vars[‘order’] = ‘DESC’; $comments->meta_query->parse_query_vars( $comments->query_vars ); } add_action( ‘pre_get_comments’, ‘cws_pre_get_comments’ );

Badges for Guests based on their comment counts [closed]

Please don’t use addslashes to escape things for SQL (it’s potentially dangerous), use $wpdb->prepare(“SQL with %s placeholders”, $string). It will put the data into the placeholder’s … place and take care of escaping, giving you SQL that is safe to execute. Anyway. Your question is how to give them a different background color based on … Read more

Comments editor not rendering &nbsp and tag

The standard comment form functionality renders the br tag and &nbsp on the front end. You can see this in the image below (which uses Divi). You might want to check the comments.php file on your theme if you find a different behavior for your comments text. Alternatively, if I have not understood the question, … Read more

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