Detecting embeded video format

so you place your video inside a shortcode and then you can run a filter on that shortcode function. works like this (to be placed inside functions.php or some custom plugin): function so327822_wp_video_shortcode($output, $atts) { //get video ID by src $video_id = attachment_url_to_postid( $atts[‘src’] ); //get video meta $video_meta = wp_get_attachment_metadata( $video_id ); //uncomment next … Read more

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.

Images not showing on blog

I’ve opened one of the missing images on a different tab and a ‘Forbidden 403’ message appears. The page shows as follows: 403 Forbidden You are not allowed to access this page. Possible problems: Missing index file Misconfigured mod_rewrite settings in .htaccess Authentication Failure Incorrect file or folder permissions Which are valid reasons you should … Read more

How to display an RSS feed widget inside a page?

if you know php you could add it to a template using wp function http://codex.wordpress.org/Function_Reference/the_widget or there is wp code to pull in a feed and list it http://codex.wordpress.org/Function_Reference/fetch_feed if you want a non coding solution, there are some plugins like: http://webdesign.anmari.com/1649/shortcode-any-widget/

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

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