Hi,
I’ve come to understand the behaviour of the CPT selector of the Popular Categories widget as only showing up when the current page scope has multiple CPT:
– home page: yes (if there are multiple CPT listings)
– location page: depends on whether there are listing of multiple CPT
– details page of a listing: no as the scope can’t be for multiple CPT
(I’ve tested this with the value of
count( $b_terms )
on line 2834 of the main geodirectory plugin in /geodirectory-functions/general-functions.php. It returns 1 in the places where the selector disappears.)
While this is great for the widget being displayed on GD pages, I would like to have it display in a standard footer column on the entire site. And it works well… except for location pages and detail pages where the selector will be missing in the footer as well.
I was my understanding, that this could be the intended behaviour of the “Show parent categories only” checkbox on the widget, but it’s unchecked and still filtering the CPT results.
Is there a way to have another checkbox that says “Show all CPT” on the widget?
If this is not easy, then can I create a new version of the widget, that always displays the selector? I would need some pointers on how to get started with that.
Thanks,
Marc