• pad

    (@pad)


    Hi all.

    (Currently, I have everything in a ‘theloop.php’ file)

    I would like to achieve, using multiple loops, this on the homepage:

    — Headline here
    Date: March 1st
    Post content post content post content post content

    — Headline here
    Date: March 1st
    Post content post content post content post content

    — Headline here
    Date: March 1st
    Post content post content post content post content

    Small headline here | Small headline here
    Date: March 1st | Date: March 1st
    Post content post | Post content post
    content post content | content post content
    ———————————————-
    Small headline here | Small headline here
    Date: March 1st | Date: March 1st
    Post content post | Post content post
    content post content | content post content
    ———————————————-
    Small headline here | Small headline here
    Date: March 1st | Date: March 1st
    Post content post | Post content post
    content post content | content post content

    You see my idea. It’s similar to this site: https://puffbox.com/

    My problem is even when following the codex on Multiple Loops, it doesn’t seem to work. I get php errors – is this because I have a theloop.php file already? I tried replacing the call to theloop.php and putting the default ‘loop’ directly into index.php but it didn’t work.

    Also, does anyone have any idea how I would, in basic form, code the multiple loops?

    Thanks a lot!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Multiple loops ahh!’ is closed to new replies.