I want to create a view with news which outputs another content type after every 5th result, in my case a newsletter subscription.
How can I do this?
I want to create a view with news which outputs another content type after every 5th result, in my case a newsletter subscription.
How can I do this?
Views paging isn't conditional, so you can't assign different filters and other settings to different sets of result items.
But you can achieve what you want by creating different Views displays, each with its own filter settings, then display them one below the other on a page, style the output so it looks like it's coming from the same source.
If you make the different displays to be Attachment types, you will be able to make them display before or after the display they're attached to, all through the Views interface. If your original display is of Page type it's the most convenient to make the other ones as Attachment types.
You could also create Blocks display types, but then you have to place each one individually in a region of your theme and order them the way you want.
Here are steps how to do it: