[Theme: Magnificent] Featured Slider Custom Type
-
Good day!
I have created an ‘article’ custom post type. I can get the articles to show up with the posts on the homepage with
$query->set( 'post_type', array( 'post', 'article' ) );
The problem is for the Featured slider. Even though the articles have the Category that is required, none of them show up in the query. If I have no ‘post’ type with the specific Category, nothing shows up, no ‘article’ type will show. If I have 1 or more ‘post’ types with the Category for Featured, it will show those ‘post’ types only. When a post is set as ‘article’ it does not appear in the query even though the Category is exactly the same as the ‘post’ that does show up.
featured.php, line 15, has the query_post for getting the Featured Category posts.
if (get_option('magnificent_use_pages') == 'false') query_posts("showposts=$featured_num&cat=".get_catId($featured_cat));
This works with the Category only when it is of type ‘post’, not when it is of type ‘article’. If there are not ‘post’ types the query is empty and the while loop never runs to show any Featured content.
I do not understand why the query is empty of ‘article’ types even if they contain the Category required. The query_post only has the limit of posts to show and the category number to query… why won’t it pick up the custom post type?
Has anyone ever encountered this type of issue?
Thank you!
- The topic ‘[Theme: Magnificent] Featured Slider Custom Type’ is closed to new replies.