WordPress.org

Ready to get started?Download WordPress

Forums

Query Multiple Taxonomies
post count question (1 post)

  1. tkhan
    Member
    Posted 5 months ago #

    I have modified the plugin to query by 'or' intead of in lists mode.
    I am having a problem with the post counts

    I have 4 categories each containing 1 post, 3 are tagged 1
    and one tagged 2.

    example

    cata tag1
    catb tag1
    catc tag1
    catd tag2

    The widget shows the correct post count if no query has been made e.g.

    cata = 1
    catb = 1
    catc = 1
    catd = 1

    tag1 = 3
    tag2 = 1

    if I query by cat a the count then becomes

    cata = 1 ---- correct count
    catb = 2 ---- query total if clicked not actual post count
    catc = 2 ---- query total if clicked not actual post count
    catd = 2 ---- query total if clicked not actual post count

    taga = 1 ---- correct count
    tagb = 0 ---- correct count

    The post count seems to reflect the number of results that querying by one of the other categories or tags will result in... not the number of posts available if that makes any sense.

    If anyone could give me any advice on how to correct this I would be extremely grateful as I have tried messing around with the post count
    function and had varying results none of them suitable for my requirements.

    Tkhan

    http://wordpress.org/plugins/query-multiple-taxonomies/

Reply

You must log in to post.

About this Plugin

About this Topic