Help: Can't embed youtube videos on Home page

Discussion in 'WordPress' started by dhisky, Jan 12, 2010.

  1. #1
    Hello I'm using church revolution template 4.0 theme and my problem is that the embedded video is not showing up on the homepage it only shows blank page, but if you go to the post itself there's no problem and the video is showing up.

    Here's the code where I'm posting it up on the home page


    What do you think is the problem guys?

    Thanks!
     
    dhisky, Jan 12, 2010 IP
  2. theapparatus

    theapparatus Peon

    Messages:
    2,925
    Likes Received:
    119
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Can we get a link to the post where the video is showing please? I have a feeling that the embed code is being broken by the the_content_limit function but without seeing the problem, there's little we can help with.
     
    theapparatus, Jan 12, 2010 IP
  3. dhisky

    dhisky Peon

    Messages:
    207
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I sent you a private message message regarding the URL. pls do repky here... Thanks!
     
    dhisky, Jan 12, 2010 IP
  4. theapparatus

    theapparatus Peon

    Messages:
    2,925
    Likes Received:
    119
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Not sure why you PM'ed me. To be honest, the url should have been in your first post in this thread.

    I can't help as the site is blocked from here. Someone else is going to have to help.
     
    theapparatus, Jan 12, 2010 IP
  5. dhisky

    dhisky Peon

    Messages:
    207
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5


    Huh? What made you say that the website is blocked here in DP?

    I didn't post the url here because I don't want to appear this thread in Google if someone search my website using the URL because my website has nothing to do with webmaster and I don't want my visitors to know the I had this problem in the past. That just it.

    People here are too suspicious :confused:

    Anyway thanks to you.

    Any other who can help me out here?

    Thanks!
     
    dhisky, Jan 12, 2010 IP
  6. ms.g

    ms.g Peon

    Messages:
    163
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #6
    The person who can best answer your question is the support group of Revolution theme.

    Anyhow, the reason why your video is not showing up is that, maybe, it is not being embedded in your page. Check the webpage's source, see if it's being embedded right, and from there you might be able to form a valid hypothesis as to why your site breaks. It might be a problem with custom fields (if the theme uses custom fields to embed videos) or other things.
     
    ms.g, Jan 12, 2010 IP
  7. adbox

    adbox Well-Known Member

    Messages:
    906
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    155
    Digital Goods:
    1
    #7
    You are probably only showing excerpts on your homepage, you will need to get into your template files, and change code in your "loop (php code that cycles through posts)"

    from

    <?php the_excerpt(); ?> to <?php the_content(); ?>

    maybe...
     
    adbox, Jan 13, 2010 IP
  8. dhisky

    dhisky Peon

    Messages:
    207
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    ms. g Thanks! I checked the source and the embed code is not there. This is a weird weird problem.. :confused:
     
    dhisky, Jan 13, 2010 IP
  9. dhisky

    dhisky Peon

    Messages:
    207
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    adbox thanks for your help.

    I searched <?php the_excerpt(); ?> on the files and there are only two files that appears to have that code. The "search.php" and "page_blog.php ". I tried to change it to <?php the_content(); ?> on both files but the video is not showing up still.

    Any other idea? Thanks again.
     
    dhisky, Jan 13, 2010 IP
  10. adbox

    adbox Well-Known Member

    Messages:
    906
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    155
    Digital Goods:
    1
    #10
    no none really.
    what does the source code show? (of the main page where the video should be embedded)
     
    adbox, Jan 13, 2010 IP
  11. dhisky

    dhisky Peon

    Messages:
    207
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Hey I was able to fixed it at last!

    The problem is this line of code

    <?php the_content_limit(1000000, __("[]", 'studiopress')); ?>

    The limit is not reading the characters that are inside the embed code so what I did is change it to <?php the_content(__('', 'studiopress'));?> and that solved the problem

    Thanks for your effort on helping me out here. :)
     
    dhisky, Jan 13, 2010 IP