If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.

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


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

    > http://www.kriesi.at/support/topic/ (Purchase code hidden if logged out) -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 “.”?



    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.