wp_insert_post iframe missing

In my install, I use one custom page. Here I put one text field and the fck editor. This is for the title and the content. I need to insert this into a page. I use the following code $my_post = array( ‘post_title’ => $_POST[‘title’], ‘post_content’ => $_POST[‘content’], ‘post_type’ => ‘page’, ‘post_status’ => ‘publish’, ‘post_author’ … Read more

how to use preg_replace for wordpress video?

I am trying to format VIDEO of my wordpress blog for my amp pages. The code I am using in content editor is: I want to display this video in AMP pages in this format: <amp-video controls width=”640″ height=”360″ layout=”responsive”> <source src=”https://mywebsite.com/wp-content/uploads/20**/0*/video-name.mp4″ /> </amp-video> I tried following functions but they didn’t worked for me. Try … Read more

Displaying all Video Post Formats to Page

I am creating a video-archive page for all the posts_format with video. Currently, I have: <?php $format = has_post_format(‘video’, $post_id); ?> <?php if($layout != “fullwidth”) { echo ‘<div class=”page_inner”>’; } if (have_posts()) : while (have_posts()) : the_post(); vntd_blog_post_content(); endwhile; This is not working, but I do not think I’m far off. What am I doing … Read more

How to generate a featured image from a video embeded in a metabox

I have a metabox that allows me to add videos from Youtube and Vimeo on posts with video post format. I am now looking into automatically generate thumbnails for these post with video post format. This is my meatabox bit of code that allows me to embed the videos: function my_theme_show_post_video_metabox( $post ) { wp_nonce_field( … Read more

Should I use custom post types for a front page video feature (vimeo)?

I’d like to create a front page video feature that embeds a vimeo video of the users choosing. I’d like the user to only have to input the video code. For instance, for http://vimeo.com/24474320 – I’d like them only to have to input “24474320”. Should I use custom post types for this? If so, how … Read more