Unique Transients user id for Non-Logged In users

Use sessions when they are appropriate. Our fellow mod @EAMann has written a useful session class for exactly these cases. There is a plugin described here that offers a different API. Just make sure to start the session only when you really need one. Google and other crawler don’t accept cookies, so you would end … Read more

Clear Transients

Unfortunately, expired entries will only be deleted if you attempt to access the transient again. If you don’t access the transient then, even though it’s expired, WordPress will not remove it. This is a known “issue” and is due to be corrected at some point in the WordPress core code. -Copied from: Artiss Transient Cleaner … Read more

Set transient with get posts error

If what you want is for this function to run once a day and loop through all matching posts (removing img tags), I think this should do the trick: <?php function remove_images_form_past_posts() { if ( get_transient(‘images_removed_from_past’) ) return; $args = array( ‘post_type’ => ‘post’, ‘year’ => 2013, ‘monthnum’ => 1, ‘day’ =>28, ‘post_status’ =>’publish’, ‘category’ … Read more

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