Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #267155

    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

    #267384

    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

    #267480

    Thanks Dude,
    Works perfectly.
    Chad

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Custom Post Types in Enfold Combo Widget’ is closed to new replies.