How to add content between posts? (2 posts)

  1. mikesorako
    Posted 4 years ago #

    I am looking for a way to add content, between posts on the home page, for example as shown here: http://i55.tinypic.com/2gtr8r8.jpg

    So in the image where it says "example I want to put stuff here" I would like to be able to add some kind of HTML content, whether a clickable image or a poll or an ad banner for example while retaining the format.

    how can I do that? is there a plugin that lets me do it through wordpress (rather then editing template files)?

    thank you

  2. csleh
    Posted 4 years ago #

    I'm afraid to say that at some point the template file will need to be edited, so wordpress knows WHERE your content goes.

    As for WHAT the content is, you might be able to use a plugin or two, but it would be easiest to decide what you want -- do you want all of those things (poll, image, ad) at the same time, or one at a time at different times, or just one type?

    From your example, it looks like the loop would be modified into two parts: first for the most recent story only, then put in the custom post area, then pull in the rest of the posts except for the most recent one listed before. You see how to do this here: http://codex.wordpress.org/The_Loop#Multiple_Loops_in_Action
    The custom stuff would go where it says "Do Other Stuff"

    It would be easiest to decide one type of content for your custom area, then putting that code in the template is a lot easier.

Topic Closed

This topic has been closed to new replies.

About this Topic