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
279 stars 83 forks source link

Is it possible to filter the posts based on a custom field? #369

Closed sbikosfp closed 1 year ago

sbikosfp commented 1 year ago

Is it possible to filter the posts in the wpp filter based on a boolean custom field? For example if a field is false in the post do not show it in the wpp shortcode list.

cabrerahector commented 1 year ago

Hi @sbikosfp,

The plugin doesn't provide such functionality so no it's not possible at this time.

If you're familiar with database queries in general you may be able to filter posts by custom field value via the various filter hooks available on \WordPressPopularPosts\Query though.