Forums

Different posts in different DIVs? How? (1 post)

  1. tastatura123
    Member
    Posted 1 year ago #

    Hi

    For a few days I've been struggling searching for a way to do something.
    I'm creating a theme and I want to call a different post in a different div. So each posts are in a different div. This is the latest posts.

    Here is a quick example of what I'm trying to do. SEE THIS IMAGE

    I've been searching through the codex and I don't seem to find out how to make it so that I can only put one post in a div and a different one in a different div.

    Like in the image the most recent post is on the left, then another one in the middle then another one on the right, then... a 4th one in a completely new area, down under.

    From the codex I've seen how to make it if those 3 posts were all in different categories or had different tags, but I don't want them to be in different categories.

    As a minimal thing I want them to be just the latest posts, but what I really want is if I use a tag "featured" and in the 3 small blocks I display the latest posts with the featured tag, and then under just the latest posts normally, but TO NOT REPEAT. I saw some info about not repeating in the codex, but I'm still not sure how to insert those in different tags.

    I appreciate any help and suggestions. Thanks

    PS. I'm not very good with php that's why I have problem with this.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags