• Resolved ahillmortons

    (@ahillmortons)


    Hi Greg,

    We are on the Professional Plus plan.

    We currently have 51 adverts live on our site, on the feed page I have the category block above the advert feed, however this is showing 68 in the For Sale category, I’ve cleared out any Pending or Draft ads and cleared the site and object cache but the count is still wrong by 11.

    Do you know what might be causing this and how I can get it to sync up again please?

    Many Thanks,

    Andy

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,

    you have ads that are assigned to two (or more categories) for example https://www.scootering.com/advert/lambretta-indian-api-150/.

    When counting number of ads in the “For Sale” category this item is being counted twice as WP is counting assignments to a term rather then actual items.

    Note that this is how WP itself is counting items not WPAdverts.

    A complex solution would be to rewrite how WP counts the items, an easier one is to allow users selecting just one category or disallow users to select a top category.

    Thread Starter ahillmortons

    (@ahillmortons)

    Hi Greg,

    Thanks for your prompt reply.

    That makes sense, I’ll get that changed to single category selection.

    Many Thanks,

    Andy

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Advert count wrong’ is closed to new replies.