Popular Categories CPT selector not appearing in certain widget location

This topic contains 5 replies, has 3 voices, and was last updated by  Giri 7 years, 10 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #339457

    Marc Mathys
    Expired Member
    Post count: 216

    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

    #339715

    Paolo
    Site Admin
    Post count: 31206

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #339866

    Marc Mathys
    Expired Member
    Post count: 216

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #340225

    Giri
    Expired Member
    Post count: 3155

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #340261

    Marc Mathys
    Expired Member
    Post count: 216

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #340300

    Giri
    Expired Member
    Post count: 3155

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

Viewing 6 posts - 1 through 6 (of 6 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount