Skip to content

group_count and meeting_count don't always work in a sidebar widget #278

@TheRichWoods

Description

@TheRichWoods

The group_count and meeting_count shortcodes don't work in a sidebar or footer widget. They only seem to work on a page where Crouton is implemented on the page itself. Examples:

If I copy the text from the footer widget to a page, the page shows that we have 50 groups and 56 meetings, and now the footer shows 50 groups and 56 meetings. On other pages, it just says 'groups and meetings'.
https://www.longislandna.com/test2/

However, on the main Crouton page, which shows meetings from five Areas, the footer widget says we have 120 groups with 144 meetings, so presumably, the service bodies used for group_count and meeting_count are automatically being pulled from what's on the page. This does not change if I add the service_body attribute to the shortcode.
https://www.longislandna.com/meeting-search/

And to be clear, on any page where there is no Crouton implementation, the widget doesn't show any count at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions