• Hi folks,

    my aim is the following situation:
    on the first index site I want to display 10 posts. The first 7 posts are the recent post of my 7 categories. The last 3 posts are the 2. post of the first 3 categories. Then I want to have a pagination, so the user can switch to page 2, where the same starts again, but with the offset from the first page.

    So the result for the first page should look like that:
    1. post – recent post cat 1
    2. post – recent post cat 2
    3. post – recent post cat 3
    4. post – recent post cat 4
    5. post – recent post cat 5
    6. post – recent post cat 6
    7. post – recent post cat 7
    8. post – 2. recent post cat 1
    9. post – 2. recent post cat 2
    10. post – 2. recent post cat 3

    the second page:
    1. post – 2. recent post cat 4
    2. post – 2. recent post cat 5
    3. post – 2. recent post cat 6
    4. post – 2. recent post cat 7
    5. post – 3. recent post cat 1
    6. post – 3. recent post cat 2
    7. post – 3. recent post cat 3
    8. post – 3. recent post cat 4
    9. post – 3. recent post cat 5
    10. post – 3. recent post cat 6

    and so on…

    I hope, the pattern is clear.

    So I tried a lot, but didn’t find a solution for that pattern.

    Anybody an idea for that?

    Thanx a lot!
    Achim

Viewing 1 replies (of 1 total)
  • Thread Starter Anna Meurer

    (@almstudio)

    first of all – i’m NOT a coder ??

    ok, I tried that code, but it isn’t correct:

    Code @ pastebin

    It shows on the second page the the last 3 posts from page 1.

    So, anybody an idea?

    THANX!

Viewing 1 replies (of 1 total)
  • The topic ‘One post each category AND paged AND repeating’ is closed to new replies.