Customizing gallery shortcode in 3.5

Make sure that the javascript loaded by your load-scripts.php is waiting for the document to finish loading before attaching all of the listeners. When you created a separate function the code ran only a tiny bit earlier, but it was probably early enough for the elements to finish loading and the listeners to properly attach.

Delete a specific category when deleting a user

delete_user action involves two parameters: $id and $reassign. So you should specify two parameters for the hook. Because sanitize_term() and sanitize_user() use different ways to sanitize strings, ‘tips_’ . $_POST[‘user_login’] and ‘tips_’ . $user_obj->user_login are not always the same string. So it’s better to use ‘tips_’ . sanitize_user($_POST[‘user_login’) as term name when inserting the term.

Loop.php vs looping inside template file

Depends on whether you would use that single-loop in more places. If you’re only using it in one place and that will remain the case, do it within single.php, if you’re going to be reusing it elsewhere, I’d highly suggest using a single-loop template part.

Add more rows on media picker

my plugin: http://wordpress.org/extend/plugins/mediapicker-more-rows/ I found a way to fix the pagination There is a way you can ‘hook’ into paginate_links. There is no official hook for it, but you can change the $wp_query->found_posts variable. What I did here is ‘hooking’ into the paginate_links by abusing the media_upload_mime_type_links filter and setting a new value for $wp_query->found_posts. … Read more

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