How to auto embedded youtube with wp_insert_post()

Youtube urls and other services that embed content in post content work via a feature called oEmbed. You need to use wp_oembed_get() to fetch the embedded content for this to work. In your case, you’re inserting content directly, so you probably don’t want to just call wp_oembed_get() and call it a day. That won’t work. … Read more

change video icons to selected thumbnail?

You can do this with a three easy steps: Create a directory in your theme that will hold all the new icons /themes/theme-name/images/icons/ Copy all the images from /wp-includes/images/crystal/ to your new directory Hook into the wp_mime_type_icon filter in your functions.php file Your filter would look like this: function change_mime_icon($icon, $mime = null, $post_id = … Read more

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