WordPress.org

Ready to get started?Download WordPress

Forums

Can I enter "<img src....." code into the title field...? (3 posts)

  1. kokopelli_sk
    Member
    Posted 7 years ago #

    Can I enter "<img src="#" />" code into the title field so that when the post displays, the title can always be a thumbnail image, with the text entered into the second field being text below it?

    I have attempted it but no joy :( Wondered if anyone knows of a solution?

  2. kokopelli_sk
    Member
    Posted 7 years ago #

    No worries, it all works fine, sorry :/

  3. Brian Layman
    Member
    Posted 7 years ago #

    Yes, but it does weird stuff elsewhere. I once accidentaly included HTML in the post and it worked but not quite correctly. It might have just been my blog settings at the time but things like the post slug and sometimes the permalink are all generated based upon info in the title. HTML can sometimes mess this up.

    If I were you, and this were something I wanted to do, I would add a custom field to every post called Thumbnail or something. Then adjust my theme to look for the thumbnail, if it exists wrap it in HTML and then display it where you want it.

    Just my thoughts on it. YMMV.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags