Just add this in the
$qry array
(‘post_type’ => ‘CUSTOM_POST_TYPE_HERE’)
Example
$qry = array(‘post_type’ => ‘CUSTOM_POST_TYPE_HERE’, ‘post__in’ => $favorite_post_ids, ‘posts_per_page’=> $post_per_page, ‘orderby’ => ‘post__in’, ‘paged’ => $page);
// custom post type support can easily be added with a line of code like below.