• Resolved roycegracie

    (@roycegracie)


    hello. i am using the upload form for users to upload their videos.

    i see that the video is being uploaded and the post with the “video” format created but the video dosn’t show.

    also i have looked at your documentation and i don’t see any shortcode that will present the video.

    i prefer to insert the video into the theme files, how do i get the video url variable ?

    thank you

    https://wordpress.org/plugins/wp-user-frontend/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter roycegracie

    (@roycegracie)

    ok.. so what i did was to first install the plugin:
    “Easy Video Player”

    and then in the SINGLE.PHP file i added this:

    <?php
    $images = get_post_meta( $post->ID, 'video_of_user' );
    if ( $images ) {
        foreach ( $images as $attachment_id ) {
            $thumb = wp_get_attachment_image( $attachment_id, 'full' );
            $full_size = wp_get_attachment_url( $attachment_id );
        }
    }
     ?>

    that code pulls the video attachment of the post.

    then, i published it by using the plugin shordcode for posting videos, like that:

    <?php echo do_shortcode( '[evp_embed_video url="'. wp_get_attachment_url( $attachment_id, 'full' ) .'" autoplay="true"]' ); ?>

    if you have a better solution, i will glad to know about it.

    Plugin Author weDevs

    (@wedevs)

    Your process was right.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘video not showing up’ is closed to new replies.