cabrerahector / wordpress-popular-posts

WordPress Popular Posts - A highly customizable WordPress widget that displays your most popular posts.
https://wordpress.org/plugins/wordpress-popular-posts/
GNU General Public License v2.0
280 stars 82 forks source link

Polylang + taxonomy filter returns no results #384

Closed cabrerahector closed 3 months ago

cabrerahector commented 4 months ago

Describe the problem

When using Polylang, trying to filter posts by category -for example- results in "Sorry, no data so far" after switching to a non-primary language even though there are posts under said category (see https://wordpress.org/support/topic/no-results-in-secondary-language/ for example.)

Steps to reproduce it

  1. Create posts & translations (and categories) with Polylang.
  2. Try filtering posts by category ID (either the "main" category or its translation).
  3. Output will be "Sorry, no data so far).

Expected behavior

WPP should render a list of posts when filtering by taxonomy.

Screenshots

N/A

Environment

Additional context

Switching languages without filtering by taxonomy works as intended.

cabrerahector commented 3 months ago

Fixed in 6d876b4.