I'm using Wordpress and I got 2 queries. One query is featured posts and the other is pulling standard posts. I'd like to replicate something similar to https://www.coolworks.com/winter-jobs. But theyre doing groups of 4. I'd like to do groups of 3.
So I'd like to show 3 featured posts, then 3 standard posts then repeat. How can I merge these arrays in php so they achieve my order?
$a1 = ['standard_1', 'standard_2', 'standard_3', 'standard_4', 'standard_5', 'standard_6', 'standard_7', 'standard_8', 'standard_9', 'standard_10'];
$a2 = ['featured_1', 'featured_2', 'featured_3', 'featured_4', 'featured_5', 'featured_6', 'featured_7', 'featured_8', 'featured_9', 'featured_10'];
// how do i get this order?
featured_1
featured_2
featured_3
standard_1
standard_2
standard_3
featured_4
featured_5
featured_6
standard_4
standard_5
standard_6
featured_7
featured_8
featured_9
standard_7
standard_8
standard_9
featured_10
standard_10
array_chunk().