WordPress.org

Ready to get started?Download WordPress

Forums

TPG Get Posts
[resolved] Exclude category (3 posts)

  1. Vakantie Ameland
    Member
    Posted 2 years ago #

    Is it possible to exclude a certain category / categories in the shortcode?

    http://wordpress.org/extend/plugins/tpg-get-posts/

  2. cswaim
    Member
    Plugin Author

    Posted 2 years ago #

    I have not tried this, but according to the parameter doc
    http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
    the author and category (which are numbers) can be excluded by entering negative numbers.

    Try something like category=-6 to exclude the category. And, of course, please post the results here so others know the results.

  3. Vakantie Ameland
    Member
    Posted 2 years ago #

    Tried this e.g and it works! Tnx for the tip

    [tpg_get_posts numberposts=15 orderby="date" show_entire="true" category=-xx]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic