Sorry, I’ve looked around and couldn’t find the help I need. My WordPress codex skills are rather basic.
What I’d like to do is use the combo widget to display recent posts from multiple (and specific) custom post types, not just the ‘posts’ post type.
Figured I’d need to get into class-framework-widget.php. I just don’t know how to properly code the query.
Appreciate any help.
Thanks, Chad
Hey crschulz!
Search for
avia_get_post_list('showposts='. $posts .'&orderby=post_date&order=desc');
and replace this line with
$query_args = array('showposts'=>$posts, 'orderby'=>'post_date', 'order'=>'desc', 'post_type'=>array('post', 'portfolio'));
avia_get_post_list($query_args);
and instead of ‘post’, ‘portfolio’ insert your post types.
Regards,
Peter
Thanks Dude,
Works perfectly.
Chad