WordPress Media Uploader not displaying image that has just been uploaded

Your issue sounds like a visual bug in the WordPress Media Uploader’s interface after an image has been uploaded, especially since you mentioned that the image appears in the right-hand preview pane but not as a selectable thumbnail. Try to force refresh the media frame after upload. You can use the add:attachment event to force … Read more

Query custom fields with three dates – start and end does not work

There is one issue I see in your code. Within ‘meta_query’ you cannot use ‘meta_key’, but it should be ‘key’. For example: array( ‘key’ => ‘_reservation_date_hour’, ‘value’ => $GMT_checkHour,//the value it is grab using ajax form ‘compare’ => ‘>=’, ‘type’ => ‘DATETIME’, ) So with your previous code all ‘meta_key’ lines were ignored. To identify … Read more

Theme / Divi change visitor css and site logo and all site urls based on REQUEST_URI non logged in wp user

Ok, I managed to get this far and hope it helps someone else a bit… so I solved the non-logged-in user issue like this (in theme functions.php or in my case my plugin functions) function first_visit(){ $ip = $_SERVER[‘REMOTE_ADDR’]; $value = get_option($ip); if ($value == ”) { update_option($ip,1); // test $affiliate = basename($_SERVER[‘REQUEST_URI’]); // in … Read more

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