Group Admins

WordPress Troubleshooting and Support

Public Group active 1 year, 1 month ago ago

WordPress support from our community

Single Video Embed on front page

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1250
    Tim Beckett
    Participant

    Hi Folks,

    I’m setting up a magazine theme as part of our magazine website. We have three main categories to display – essays and stories, poetry, images and video. The big problem I’m having – how to pull a single video from a post that maybe video and some text, or multiple videos. This theme is a child theme of twentyeleven, and uses the native wordpress uploader. I can display video with text, or the whole post, I can pull a single image from a post – but not video. Any idea how I might do this?

    The (staging) site is: http://www.blogstaging.sensitiveskinmagazine.com

    Thanks!

    Tim

    #2073
    Steve
    Keymaster

    Hi Tim,

    Please clarify— you are uploading videos and want to show a thumbnail of the video?

    #2074
    Joly MacFie
    Participant

    I’m guessing it is a turnkey magazine theme that has a “featured post” feature and he’s looking for a way to select a particular piece of content to be actually featured. Fullsize not a thumbnail. Could it not be done via a custom ‘feature’ field that is hidden in the original post?

    #2075
    Tim Beckett
    Participant

    Hi Steve and Joly,

    Thanks for getting back. This is a child theme built on twentyeleven. The most customized part is the front page. Basically, it allows dozens of writers to post entries, have them appear in different categories on the front page – art, video, essays etc. Everything seems to work fine but video.

    I would like to see video displayed full-size in the top left section – and be able to pull out a video from a post the way one pulls out featured images.

    One of the problems here is that most of these users will have no computer knowledge, ie no knowledge of markup, custom fields or anything like that. So we have to keep it as simple as possible.

    Joly – are you talking about adding a custom field then pulling that up on the front page?

    I was wondering if there was a plugin that would allow you to pull out a featured video, the way you pull out featured images.

    Thanks,

    Tim

    #2076
    Tim Beckett
    Participant

    To illustrate – this is the code we are using to pull out images from the post and display in the appropriate section on the front page (note, I’m using a plugin called ‘excerpt re-reloaded’ to control the excerpt length depending on whether there is an image or not.

    Is there a way to pull up a single the same way? :

    $args = array(
    ‘numberposts’ => 1,
    ‘post_type’ => ‘attachment’,
    ‘status’ => ‘publish’,
    ‘post_mime_type’ => ‘image’,
    ‘post_parent’ => $post->ID
    );
    $images = &get_children($args);
    //start if/else
    if($images) {

    foreach ( (array) $images as $attachment_id => $attachment ) { ?>
    ” rel=”bookmark” title=”“>
    echo wp_get_attachment_image($attachment_id, array(340,260),”);
    ?>


    ‘,’div’,’yes’); ?>

    ‘,’div’,’yes’); ?>
    }
    ?>


Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.