Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #625


    I am wondering how I could add a line of text under the title of the portfolio entries?

    For example:

    Under where it says ‘Fiat UK Virtual Showroom’ I would like another line of text (in a smaller font) Saying Client: XXXX Agency: XXXX etc

    How would I achieve this?

    Many Thanks



    Sure, I would use a custom field to do this.

    1.) Open up single.php and just before echo $preview; // echo the preview image add this code:

    $punchline = get_post_meta($post->ID, "punchline", true);
    if($punchline != "") { echo "<h3>".$punchline."</h3>"; }

    2.) For posts which you want the text under the title, add a custom field called “punchline” and enter the text here. If you don’t want a punchline, leave it blank.

    Let me know how you get on.


    This is amazing!! :-)

    I thought this may have been much much more difficult to achieve!

    Thank you so much!



    Hi there!

    I have another request if it is not too tricky?

    It it possible, if I wish, to have the single post portfolio pages’ text appear above the image instead of below it?

    Many Thanks,

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

The topic ‘Portfolio page – Adding a line of text under the page title?’ is closed to new replies.