How to show Y number of custom posts after every X normal posts?
Here’s an idea: Definitions: Posts per page: PPP Custom post type: Y Main query post type: X How many Y posts to inject each time: y How many X posts to display before injecting the Y posts: x Formula: We will use: PPP(Y) = y * floor( ( PPP(X) -1 ) / x ) where … Read more