Forums

Default custom fields - how to use the 'else' statement (1 post)

  1. jeni_8686
    Member
    Posted 11 months ago #

    Hi,

    my blog currently features thumbnails for the five most recent posts that have the "post thumbnail" custom field defined. When I don't add anything to this field the layout of my site breaks!

    So, I want to add php to make sure a default image is pulled in. Any tips on how to edit my index.php code?

    [Code moderated as per the Forum Rules. Please use the pastebin]

    http://www.jeniwren.com

Reply

You must log in to post.

About this Topic