Video Embed in Sidebar Widget with Links to Others in Category

I would create a Custom Post Type for Videos, and use in conjunction with some plugin like Simple Video Embed From there you can make a list of videos like so: <?php query_posts(‘post_type= videoss’,’showposts=20′); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class=”vidoes” > <?php echo p75GetVideo($post->ID, 400); ?> <h5><?php the_title(); ?></h5> … Read more

wp_embed_register_handler not working

I modified the example you posted from the Codex: /** * Embed support for Forbes videos * * Usage Example: * * http://www.forbes.com/video/5049647995001/ */ add_action( ‘init’, function() { wp_embed_register_handler( ‘forbes’, ‘#http://www\.forbes\.com/video/([\d]+)/?#i’, ‘wp_embed_handler_forbes’ ); } ); function wp_embed_handler_forbes( $matches, $attr, $url, $rawattr ) { $embed = sprintf( ‘<iframe class=”forbes-video” src=”https://players.brightcove.net/2097119709001/598f142b-5fda-4057-8ece-b03c43222b3f_default/index.html?videoId=%1$s” width=”600″ height=”400″ frameborder=”0″ scrolling=”no”></iframe>’, esc_attr( $matches[1] … Read more

How to embed page content in a blog post

Create a shortcode to embed the content. This will always be synchronized. Sample code from an older project. Just updated. 🙂 GitHub: https://gist.github.com/3380118 · This post in German (auf Deutsch) on my blog. <?php # -*- coding: utf-8 -*- /** * Plugin Name: T5 Embed Post Shortcode * Description: Embed any page, post or custom … Read more

Give Author users the right to embed

The capability you are after is called unfiltered_html. Some options: Modify author capabilities in your theme functions.php. This is saved in the DB, so you can access a page, make sure it works then remove it from your functions.php file. A better option would be to run it on theme activation. See this page on … Read more

add_filter to youtube embeds?

Yes, there is a filter for Oembeds. Two (or even more) in fact: oembed_result will be called before it is put in the cache (so only once per external embed), and embed_oembed_html after the cache (so every time the item is displayed). If you only need to modify it once, oembed_result is probably your friend. … Read more

Applying automatic link class to images embedded to posts

You can run a filter on image_send_to_editor, the filter runs inside the get_image_send_to_editor function which is resposible for sending the link HTML that surrounds images sent to the editor. The filter can be found in core, in wp-admin/includes/media and is linked below for quick reference. core.trac.wordpress.org/browser/tags/3.1/wp-admin/includes/media.php

TED talks shortcode not working

Unfortunately, this is going to be a problem for you. The [ted] shortcode is specific to WordPress.com – not to a self-hosted site where you installed the software yourself from WordPress.org. The only embeds that WordPress.org’s software supports by default are listed in the Codex: YouTube (only public videos and playlists – “unlisted” and “private” … Read more

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