• Hey everyone. I hope someone can help me figure this out. Let me start out with what one of my posts would look like. Each of my blog entries is an embedded youtube video with some text below it. Very simple. However, I want to make it so that on the home page (where it lists the last 4 or 5 blog entries) it will show a thumbnail of that entry (which I will provide a different one for each entry) and not show the video. And likewise, when you open that blog entry, the video will be at the top, however, the thumbnail will not show. It’s just really messy to have a full video on the home page if I’m going to have a lot of entries.

    Lastly, once that is figured out, how to I shorten that home page excerpt to be only the thumbnail and a few lines rather than the entire blog entry?

    A great example of what I’m talking about is at http://www.hotforwords.com. You’ll notice how their home page excerpts of each blog entry show a thumbnail that doesn’t exist on the full blog entry permalink. Instead, they have a video. That’s exactly what I’m trying to do.

    Any help is much appreciated.

    Thanks,
    Kyle

Viewing 6 replies - 1 through 6 (of 6 total)
  • Try using <?php the_excerpt();?> instead of <?php the_content();?> in your home page template (commonly your theme’s index.php file).

    Thread Starter keliason

    (@keliason)

    Esmi. It seemed to have almost work. It showed the thumbnail on the home page and left the video hidden, however, it screwed up a few things. The sidebar was gone as well as the footer. It also only allowed the most current post on the home page almost like it got stuck after that.

    I think you may have removed too much from your template file.

    Thread Starter keliason

    (@keliason)

    I think I got it. In the file, it was <?php the_content(”);?>. Meaning, it had single quotes in the parentheses. I had to remove them.

    Thread Starter keliason

    (@keliason)

    It now successfully show the excerpt on the index page instead of the entire post. Yay!

    Would you happen to know how to hide the thumbnail at the top of the post for individual blog entries? Does it involve reworking the ‘page.php’?

    Thread Starter keliason

    (@keliason)

    Oh.. no it was single.php! Awesome! I’m learning. I’m learning. Mommy take a picture!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How do I show/hide the thumbnail and video’ is closed to new replies.