• Hello!

    I’d like to loop normal posts and custom post type “feature” in one loop.

    The thing is that I want the first post in the loop to be “feature” or normal post depending which was published first. And after that comes 2 normal posts and “feature” post as every third post like this:

    FEATURE or POST
    POST
    POST
    FEATURE (if the first item in the loop is POST this one is the newest FEATURE)
    POST
    POST
    FEATURE
    POST
    POST
    ….and so on.

    I searched Google like crazy but didn’t find any help there.

Viewing 1 replies (of 1 total)
  • Jon (Kenshino)

    (@kenshino)

    Lord Jon

    Use two queries, get the individual post types.

    Then take the 2 object arrays and combine them together.

    Then do the loop.

Viewing 1 replies (of 1 total)
  • The topic ‘Custom post type in loop after every x posts’ is closed to new replies.