I need to refresh page to display wp_get_current_user() : why?

This is because of your plugin code is executed much earlier, than wp-login.php. You can read about WordPress loading sequence here, for example. To behave properly, your code must be executed in ‘wp_login’ hook: add_action( ‘wp_login’, ‘wp_login_action’, 10, 2 ); function wp_login_action( $user_login, $user ) { current_user = wp_get_current_user(); print_r($current_user); }

content disappearing minutes after it’s published

It is true that this problem will need some extensive (and knowledgable) hands-on to fix. In general, though, I would disable all caching, including any that JetPack does use my hosting File access (or FTP) to edit/change htaccess change all credentials – WordPress, hosting, FTP, databases – resetting all passwords to different (and strong) reinstalling … Read more

Setting expires headers for static content served from nginx

I prefer to do a more complete cache header, in addition to some more file extensions. The ‘?’ prefix is a ‘non-capturing’ mark, nginx won’t create a $1. It helps to reduce unnecessary load. location ~* \.(?:ico|css|js|gif|jpe?g|png)$ { expires 30d; add_header Pragma public; add_header Cache-Control “public”; }

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