• I’ve managed to make this kinda sorta work, but there’s gotta be a better way. I can use an image within the post title on this photoblog, but there are some limitations:

    https://kickasswebdesign.com/wp2test/

    The problem with the way I did it is that no other option other than the default for permalinks will work. I also had to strip out titles (and never did find that one in the commenting section . . . ) in the links in certain places to get this to work.

    Now, I’m great at skinning, but I’m less good at figuring out stuff like this that might require a special php touch with conditionals or somesuch. Is there a way to do this? Or is there a plugin that would work? I poked around and couldn’t find anything.

    This is, as I mentioned, a photoblog, and most, if not all, posts will have a title photo.

    I also did something different with the archives, that also looks great but is not optimal when photos are used in the title area, and for the same reasons.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Maybe this:
    guff.szub.net/2006/02/09/post-image/

    Thread Starter kickass

    (@kickass)

    ooh, this looks like it might do it. I’ll try it and let you know. THANKS!

    Thread Starter kickass

    (@kickass)

    Well, I’m ALMOST there, but I’ve got a little problem. Even though it says it won’t show image on posts that don’t have an attached image, that’s exactly what’s happening. Testbed here:
    https://kickasswebdesign.com/wp2test/

    I got it working nicely except those broken image tags.

    In index.php and single.php I have this:
    <?php post_image('', false); ?>

    In archive.php I have this:
    <?php post_image('', true); ?>

    Does anyone have any suggestions?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Image Within Post Title– Better Way???’ is closed to new replies.