WordPress.org

Ready to get started?Download WordPress

Forums

External Videos
Reformatting external-video posts in a custom loop (3 posts)

  1. nimmolo
    Member
    Posted 2 years ago #

    Hi Silvia,

    Without altering the post content automatically created by External Videos, I'd like to write a loop function to pull the post video into a separate div from the description text and other text within the post content, so that I can more easily manipulate the layout the way I want it. I'm already using custom loops for every part of my site.

    I'm wondering if you have any advice about the best way to do this, since the plugin only embeds the URL for the video, without any tags.

    Do you think it would be better to modify the plugin, or the loop?

    Glad to show you the site but it is not public because it is still in development. Email me if you'd like to see what i'm talking about.

    http://wordpress.org/extend/plugins/external-videos/

  2. nimmolo
    Member
    Posted 2 years ago #

    Silvia - I think i can make my question clearer, but if not it's because i'm not sure I quite understand how the plugin works.

    What I think happens is, the plugin looks through posts of the post type "external-videos" and when they are displayed, pulls the embed url, and enqueues the thickbox player to play the video from that url. (tell me if i'm wrong!)

    So what I'd like to do is slightly change the way that's functioning, so I can wrap the video in a separate div from its description in the post.

    The reason I want to do this is I want video and post text displayed side by side, rather than on top of each other in the normal flow.

    Hope that makes more sense! :)

  3. silviapfeiffer1
    Member
    Plugin Author

    Posted 2 years ago #

    Why don't you just change the CSS?

    Also, if you need more elements to do the CSS, you can always add them in the file that puts the elements together, ev-shortcode.php - in the sp_ev_display_gallery() function in the gallerycontainer:
    <div class="gallerycontainer" style="clear:all;">

    HTH.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic