WP Query to display events and custom post type in a set order
I have implemented the following code to my them to achieve the custom ordering for featured events (first), regular events (second), and notices (third). New additions to the code include: Merged the posts using array_merge like this: $merged_posts = array_merge( $featured_events->posts, $future_events->posts, $notices->posts ); Ran a foreach to set a custom post order for featured … Read more