• I’m working on using WordPress to post news stories to the front page of my website. I figured out how to drop the PHP code into it, and the posting works. I even got everything tagged with my own style sheets and it’s working perfectly so far, but the format I use has nested table cells (the only way I knew how to do it without much work) and I want to be able to tag a photo while making a new post and have the photo show up inside a preset table cell. I don’t even need upload ability, though that’s a nice addition.
    To see how the HTML version of this looks, see my site:
    http://www.keynoteuser.com
    I just don’t want to have to settle for stuffing an image into the body area and just having it wrap, it just doesn’t look as good.
    You can see my test doing that here:
    http://www.keynoteuser.com/indexTEST.php

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter brianpeat

    (@brianpeat)

    I decided to go with a Read more system for the front page, but I’d still love to have a way to force a photo into a table cell if needed. It would be great to have some kind of hack where the photo is simply an uploaded item in the post and a small php tag represents where the image goes for that post just like the time, date, author, etc stamps. Is there such a beast?

    “In the post” implies it’s in the content and the_content() just puts out the content of the post… So you can’t have a php tag for something that is in the content.
    What you could try though: Put the image(s) into a meta field and use something to build an img tag from that field. Don’t know if this makes sense layout-wise. Just assigning a class to the img tag and using some CSS to do with it whatever you want seems much simpler.

    Thread Starter brianpeat

    (@brianpeat)

    By in the Post I mean, another field of info that’s tied to that post, the same way the title, date, category, etc are tied to that post. So yeah, I need to figure out how to make a new field that will post some image html based on the image or url to an image that I enter into a form field while making my post. My problem is that I have no idea how to do that.

    Thread Starter brianpeat

    (@brianpeat)

    By in the Post I mean, another field of info that’s tied to that post, the same way the title, date, category, etc are tied to that post. So yeah, I need to figure out how to make a new field that will post some image html based on the image or url to an image that I enter into a form field while making my post. My problem is that I have no idea how to do that.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Image in its own table cell?’ is closed to new replies.