We're merging with GenerateBlocks! Learn more here.

[Support request] Potential Category Bug?

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Potential Category Bug?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #7398
    Ashley
    Participant

    Hi There!

    I’ve just started using WPSP Pro for the first time and I’ve noticed that if you select ‘category’ as the taxonomy it only displays categories with posts.

    I’ve got some categories I want to assign to wpshowposts ready for when posts get added to them in the future.

    Is this possible?

    #7408
    Tom
    Keymaster

    I agree – we’ll be changing that in the next free version.

    If you’re comfortable editing code, you can remove &hide_empty=1 here: https://github.com/tomusborne/wp-show-posts/blob/1.1.3/admin/ajax.php#L41

    You can see the change we made here: https://github.com/tomusborne/wp-show-posts/commit/fdfe13b25893974a63a8fe0decf2672c85089540

    #7409
    Ashley
    Participant

    Thanks Tom – it’s easy when you know where to look!

    I’ve applied that change but it’s still not displaying the empty category.

    It may be a caching issue on the server. I’ll flush it and try again in the morning and let you know how I get on!

    #7416
    Ashley
    Participant

    Hi Tom,

    After looking this morning the issue still hasn’t gone away.
    Any ideas?

    #7424
    Tom
    Keymaster

    That’s strange.

    What happens if you change it to: &hide_empty=0

    #7427
    Ashley
    Participant

    Hi Tom,

    That worked a charm!

    To confirm this is what line 41 now looks like in ajax.php.

    $terms = get_terms( sanitize_key( $_POST[ 'taxonomy' ] ), 'orderby=count&hide_empty=0' );

    #7430
    Tom
    Keymaster

    Perfect – I’ll get that changed in the next version 🙂

    Thanks!

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