clb2196 on "[Plugin: WP Ultimate Post Grid] Show empty?"

ساخت وبلاگ

Hi- is there a way to show taxonomies even if they are empty? I didn't see it as an option, perhaps an override in the code?

https://wordpress.org/plugins/wp-ultimate-post-grid/

Hi there,

At the moment you'd have to use some custom code for that. What would be the use case?

Brecht

The main thing is for the States filter, we'd like to have all states show just to be cohesive, and because it's being used with deep linking from a clikckable map. I'm fine with custom code- I did make sure to add the show empty = true to those sorting methods you wrote for me.

Right now you could use the wpupg_grid_cache_filter plugin hook, but you'd have to generate the entire filter HTML yourself, basically, so that requires quite a bit of custom code.

If that's an option you can take a look at the /helpers/grid_cache.php file and see how it's generated there.

I'll look into an easier solution for one of our next updates.

Brecht

clb2196
Member
Posted 11 seconds ago #

Ah, I looked at the code- so are you looping over the posts and grabbing the terms that way? That makes sense then. Hm. Probably not worth a code workaround for now. I'll keep an eye out for updates!

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 320 تاريخ : سه شنبه 29 تير 1395 ساعت: 20:09