top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

How do I include a video in WordPress posts?

0 votes
49 views
How do I include a video in WordPress posts?
posted Apr 25, 2017 by Sahana

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

1 Answer

0 votes

There are two ways to include or insert video files into WordPress posts

Add video from the Web:
Step 1 : Log in to your WordPress.com account and click the Add New link from the Posts menu.
Step 2 : Click the Add Video icon, then click the From URL tab.
Step 3 : Type the URL (Internet address) of the video in the Video URL text box. Video providers, such as YouTube, usually list the direct link for the video file on their sites; you can copy and paste it into the URL text box in the Add Video window.
Step 4 : Click the Insert into Post button. WordPress inserts piece of code called a “short code”. That short code tells WordPress to embed the video within your post so that your readers can play, watch and listen to the video directly on your WordPress blog.

Upload a video file from your own computer and post it to your blog:

Step 1 : Log in to your WordPress.com Dashboard and click the Add New link from the Posts menu. The Add New Post page opens.
Step 2 : Click the Add Video icon.
Step 3 : Click the Select Files to Upload button. An Open dialog box appears.

Step 4 : Select the video file you want to upload and click Open (or double-click the file). The file uploader window in WordPress reappears, showing a progress bar while your video uploads. When the upload is complete, a box containing several options appears.

Step 5 : Type a title for the file in the Title text box, a caption for the file in the Caption text box, and a description of the file in the Description text box.
Step 6 : Click the File URL button.
Step 7 : Click Insert into Post. WordPress inserts a link to the video into your post.

answer Apr 26, 2017 by Divya Nayak
Similar Questions
0 votes

I have 4 categories. For each category I will show 5 recent post. I will have category such as breakfast, dessert, lunch and savory food. There will be a "See All" link for each category, so when the user click on "see All" link, can see all post of the particular category. Currently my code looks like this, but I am stuck with the "See All" link. I don't know how to link it to main category.

<?php 
get_header();
?> 
<!-- recipe -->
<section class="recipe-wrap">
    <?php
    /*
     * Loop through Categories and Display Posts within
     */
    $post_type = 'recipe';
    $category_link = get_category_link($cat->cat_ID);

    // Get all the taxonomies for this post type
    $taxonomies = get_object_taxonomies( array( 'post_type' => $post_type ) );

    foreach( $taxonomies as $taxonomy ) :

        // Gets every "category" (term) in this taxonomy to get the respective posts
        $terms = get_terms( $taxonomy );

        foreach( $terms as $term ) : ?>

    <div class="recipe-category owl-carousel-slide">
        <div class="row">

            <h2><?php echo $term->name; ?><a href="#">see all</a></h2>

            <div class="recipe-category-carousel owl-carousel owl-theme">

                <?php
                $args = array(
                        'post_type' => $post_type,
                        'posts_per_page' => 10,  //show all posts
                        'tax_query' => array(
                            array(
                                'taxonomy' => $taxonomy,
                                'field' => 'slug',
                                'terms' => $term->slug,
                            )
                        )
                    );
                $posts = new WP_Query($args);

                if( $posts->have_posts() ): while( $posts->have_posts() ) : $posts->the_post(); ?>

                <div class="item recipe-box">
                    <a href="<?php the_permalink(); ?>">
                        <img src="<?php echo(types_render_field('artwork', array('raw' => true) )); ?>">
                        <p><?php the_title(); ?></p>
                    </a>
                </div> 

                <?php endwhile; endif; ?>
                    </div>
                    </section>
                <?php endforeach;
            endforeach; ?>
            </div>
        </div>
    </div>
</section>
<!-- /recipe -->
<?php 
get_footer();
?>
0 votes

I am looking for the user to redirect to the home page when the user tries to access the video permalink. So, how to automatically remove default video links.

function wpb_imagelink_setup() {
$image_set = get_option( 'image_default_link_type' );

if ($image_set !== 'none') {
    update_option('image_default_link_type', 'none');
  }
}
add_action('admin_init', 'wpb_imagelink_setup', 10);

I tried the above code, but it doesn't work

+2 votes

I have moderate level PHP programming skills. I am also interested in merging those skills inside of the WordPress app. With their advanced responsive design themes and many other functions it seems like a good idea. I have tried loading some PHP plug-ins in WP – but I don't seem to get them to do more than basics.

Can anybody help me on how I can get started working with PHP/MySQL inside of the WordPress app?

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...