Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2149

    Hi,

    In another post, you post the code for put and aditional headline in pages


    > http://www.kriesi.at/support/topic/additional-headline-strip-on-portfolio-page

    I put it, whith the correction of syntax error, but appears another syntax error in this line:

    {echo '
    <h2>' . get_post_meta($post->ID, 'second_headline', true); } . '</h2>' ;}

    Can you said me whta is wrong? Maybe a “.”?

    Thanks!

    #36860

    I corrected the code in the thread you posted above – here is the correct one:

    echo '<div class="center">';
    if($headline != "") echo $headline;

    if ( get_post_meta($post->ID, 'second_headline', true) )
    {echo '<br/><h2>' . get_post_meta($post->ID, 'second_headline', true) . '</h2>' ;}

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Aditional Headline on Portfolio’ is closed to new replies.