WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. doxadigital
    Member
    Posted 1 month 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

About this Topic

Tags

No tags yet.