WordPress.org

Ready to get started?Download WordPress

Forums

Count Posts in a Category, Tag, or Custom Taxonomy
Feature Request/Question (1 post)

  1. spabav
    Member
    Posted 9 months ago #

    I am not sure if this is implemented, if not please take this as a feature request.

    Can I "query" different categories with AND or OR relationsships?

    I see that you can do e.g.:
    [cat_count slug="cat-1,cat-2,cat-3"]

    But can i do:
    COUNT number of post in category 1 AND 2.. but NOT if they are category 3 ?

    This is something which would come handy for us as we have posts which are in multiple categories and we would like to filter out duplicate counts.

    An example of such "query syntax" can be seen on another plugin we are using ( it displays the posts in certain categories).
    Please go here:
    http://wordpress.org/plugins/list-category-posts/other_notes/

    and you can see how the author implemented "Include AND", "Include OR" and "Exclude" queries.
    Hope this helps.

    Can this perhaps be done already? if not would be great if you could consider this.

    http://wordpress.org/extend/plugins/count-posts-in-a-category/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.