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

want to stop stripping out from my post content

I’m only guessing but it sounds like your insert method is tripping up on one of WordPress’s filter functions (e.g. wp_filter_kses). If you need a more exact answer, please update your question to include some of the code you’re using to insert the post content.

Outside url for post content

This is not a built-in feature, but if you install the Show Content Only plugin into WordPress, this functionality will be available – simply add: ?content-only=1 … to the end of the post URL to get the content only.

pdf (25MB) – how to display and enable download?

If you’re using Apache, you can add something like this in your .htaccess file AddType application/octet-stream .pdf This will force everything with a .pdf extension to download instead of display in the browser. If however you are not using Apache or if you want only certain files to download and others to display directly, you … Read more

Embed Youtube video link in wordpress editor

Try just pasting the YouTube URL in to the post or page in the text editor with-out embed code as an editor. See if that works never heard anyone having this problem… https://www.youtube.com/watch?v=VYmp9HmMYwU&t It’s super easy to embed videos, images, tweets, audio, and other content into your WordPress site. This feature was added in WordPress … Read more

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