I'm trying to figure out how to filter the posts returned by post type. I have a list of checkboxes of my different post types, and using that, I've gotten an array of the post types wanted;
$contentTypes = explode(',', $_POST['contents']);
Which gives me this:
Array (  => post-type1  => post-type2  => post-type3  => post-type4  => post-type5 );
When I set the $args for post_type I want to check it against $contentTypes and only show the ones that are in my array.
I may not have explained this very well. But what would be the best way to do this? If I need to rework what I've done so far that's fine too.