• Resolved kerelberel

    (@kerelberel)


    This the loop currently, it’s working:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    I’d like another loop, the other loop is only executed when the category ID is 20. On that category the div class is different so I can style the post differently. I can’t get it to work though..

    This is how I tried it:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Doesn’t work.

Viewing 1 replies (of 1 total)
  • Thread Starter kerelberel

    (@kerelberel)

    in_category was the problem, it’s supposed to be is_category. Been trying everything for 2 hours but someone on another forum pointed this out.

    Close.

Viewing 1 replies (of 1 total)
  • The topic ‘if statement on loop not working’ is closed to new replies.