Displaying oEmbed errors?

Not possible with current code. WP_oEmbed object goes extra mile (more like miles) to sanitize input so it is either html or boolean false. All errors with fetching are discarded on output, there are no filters in there and only error (hardcoded) it handles is 501 not implemented. Earliest you can mess with this is … Read more

Too much recursion error when chosing image from image library for two different meta boxes in one post

I think you’re running into a problem people mentioned in the comments to that story. Someone else posted about it here: http://www.theenglishguy.co.uk/2010/01/24/multiple-media-uploads-in-wordpress-functions-php/ Basically, the JavaScript from that site should be modified to be more like this: jQuery(document).ready(function() { var formlabel = 0; var old_send_to_editor = window.send_to_editor; var old_tb_remove = window.tb_remove; jQuery(‘.upload_image_button’).click(function(){ formlabel = jQuery(this).parent(); tb_show(”, … Read more

Using the media uploader in a custom plugin

The output code of widget’s form method is added to page once for every instance of the widget (included the “dummy” instance contained in the “Available widgets” panel), so in your case the javascript code that defines the window.send_to_editor function may appear more than once, and the last instance overwrites the previous ones. There are … Read more

Change default tab of media manager

Try this: function rearrange_media_tabs($_default_tabs) { $_default_tabs = array( ‘custom’ => __(‘Your Tab Name’), ‘type_url’ => __(‘From URL’) ); return $_default_tabs; } add_filter( ‘media_upload_tabs’, ‘rearrange_media_tabs’ ); From the Codex: https://developer.wordpress.org/reference/functions/media_upload_tabs/

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