Show object in last post only.
I have a two-part question:
For a theme I’m designing, I came up with the idea of having an image (such as a webcam) that only appears in the last post. The trick is that it needs to be *inside* the post content so that the text can wrap around it. I imagine this could be accomplished by a simple if/then statement; basically “if (post is most recent) then (show object)”. The problem I have is how to determine if a post is the most recent.
I have a php coder working on some stuff for me (I do css, not php) but he’s brand new to WP, so I thought I’d ask a few questions first to help him out.
First: Is there an existing plugin that accomplishes what I want: inserting an object (image) into only the the most recent post?
Second: If not, what is the most efficient way to determine if a post is the most recent *and* be able to manipulate that variable in either a hard-coded statement or a plugin (preferred)?
I would also want to have a way to either wrap a css class around the code, or set its parameters in the plugin (height, width, border, etc.), if that makes any difference.
- The topic ‘Show object in last post only.’ is closed to new replies.