WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Popular Posts
Add more than one custom post type to get_mostpopular (2 posts)

  1. Stefan83
    Member
    Posted 1 year ago #

    Hi I'm trying to add more than one custom post type (podcast,video) to the following:

    <?php get_mostpopular("post_type=podcast&range=weekly&limit=5&order_by=avg&stats_comments=0&pages=0"); ?>

    Can anyone help?

    Thanks

    http://wordpress.org/extend/plugins/wordpress-popular-posts/

  2. Héctor Cabrera
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Stefan,

    Just pass the other post types separated by comma, like this:

    <?php get_mostpopular("post_type='podcast,video'&range=weekly&limit=5&order_by=avg&stats_comments=0&pages=0"); ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic