1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to make this 3 lines of php work?

Discussion in 'General Programming Chat' started by PlatinumPi4u, Nov 4, 2010.

  1. PlatinumPi4u

    PlatinumPi4u Junior Member

    Joined:
    Mar 5, 2010
    Messages:
    170
    Likes Received:
    29
    I don't know much about php, but I need to merge the 3rd line into the second line...

    Basically I need to turn this:

    PHP:
    <?php if (get_option('woo_image_single') == "false"woo_get_image('image',get_option('woo_single_width'),get_option('woo_single_height'),'thumbnail alignright'); ?>
    <?php the_content
    (__('<span class="continue">Continue Reading</span>',woothemes)); ?>
    <?php 
    if(woo_get_embed('embed',595,420)){echo woo_get_embed('embed',595,420);}?>    



    into something along the lines of this:


    PHP:
    <?php if (get_option('woo_image_single') == "false"woo_get_image('image',get_option('woo_single_width'),get_option('woo_single_height'),'thumbnail alignright'); ?>
    <?php the_content      
    ***Line 3 from above***     (__('<span class="continue">Continue Reading</span>',woothemes)); ?>

    This is part of a wordpress single.php, and it is displaying the content of the page, and the plugin YARP is creating the parts after 'the_content' and so i'm trying to put this video embed code in between the end of the content, and before the YARP code....
     
  2. msimurin

    msimurin Regular Member

    Joined:
    Sep 21, 2009
    Messages:
    243
    Likes Received:
    92
    You can't put it afer <php the content because the content first needs arguments so i would try to do this

    PHP:
    <?php if (get_option('woo_image_single') == "false"woo_get_image('image',get_option('woo_single_width'),get_option('woo_single_height'),'thumbnail alignright'); if(woo_get_embed('embed',595,420)){echo woo_get_embed('embed',595,420);}?>
    <?php the_content
    (__('<span class="continue">Continue Reading</span>',woothemes)); ?>