WordPress.org

Forums

Popularity Posts Widget
[Info] Query for category filter (1 post)

  1. doxadigital
    Member
    Posted 10 months ago #

    for those who failed to filter by categories... i found slight bug in the query..

    open class_popularity-posts-widget.php
    on line 259, change:
    "WHERE x.taxonomy = 'category' AND t.term_id IN ($res_cat)"

    to

    "WHERE x.taxonomy = 'category' AND x.term_taxonomy_id IN ($res_cat)"

    This solves my problem, and hope yours too

    https://wordpress.org/plugins/popularity-posts-widget/

Reply

You must log in to post.

About this Plugin

  • Popularity Posts Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.