Support » Plugin: WordPress Popular Posts » How to display only one category

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi @craigcannon,

    Currently, there’s no way to tell WPP directly to display only one category instead of the entire list.

    There’s a way to reduce the list to one category via WordPress’ filter hook get_object_terms but it might affect other parts of your theme (eg. also display only one category in other sections of your site) which might not be a desirable side effect.

    TLDR;

    Unfortunately, there’s no clean way to reduce the categories list to one category at the moment.

    Got it. Thanks Hector!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.