“Can an array be removed from an array inside a foreach loop in WordPress?”
I have found advice on removing single elements from an array within foreach, but wasn't able to get it working when trying to remove an array from an array. Here's what I'm working with: <?php $all_posts = array('1', '2', '3',…