How to make my scroll bar show under condition

It seems like the issue might be related to the scope of the $flag variable. Currently, you are setting $flag=true inside the if(isset($_POST[‘bnews’])) block, which means it’s a local variable within that block. To make it accessible outside that block, you should declare it outside the if statement. Additionally, you are trying to use $flag … Read more

Pre_get_comments and orderby comment_karma

I think you’re close with your 2nd snippet, but you should be using meta_value_num instead of meta_key_num. $query->set( ‘meta_key’, ‘comment_karma’ ); $query->set( ‘orderby’, ‘meta_value_num’ ); See the WP_Query orderby docs for more info.

How rename wp-content and wp-admin folders correctly

To rename the wp-content and wp-admin folders in WordPress, you can use constants defined in the wp-config.php file. The following constants can be used to rename wp-content folder: define(‘WP_CONTENT_FOLDERNAME’, ‘Folder_Name’); define(‘WP_CONTENT_DIR’, ABSPATH . WP_CONTENT_FOLDERNAME); define(‘WP_CONTENT_URL’, ‘http://’ . $_SERVER[‘HTTP_HOST’] . “https://wordpress.stackexchange.com/” . WP_CONTENT_FOLDERNAME); For wp-admin folder, renaming it using constants is not recommended as it may … Read more

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