• Resolved jjazzbel

    (@jjazzbel)


    I am using the free version of FooGallery. This is happening with standard out of the box themes such as Twenty Seventeen and also Genesis Breakthrough Pro. In the back end, on right column in my list of galleries, the usage column displays “Not used!” for all the galleries that I have used in Modern Tribe Calendar Events. It is really useful to be able to see where they are used. All other galleries that are used on regular pages and posts display the page/post usage correctly.

    Any ideas?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support elviiso

    (@elviiso)

    Hi @jjazzbel

    Currently, FooGallery can only detect the galleries added directly to pages and posts. That’s why those pages and posts where the galleries have been added next to the relevant galleries in the FooGallery Gallery listing page.

    For those added into widgets/sections – such as the calendar events in your case – of themes or other plugins, even though FooGallery easily integrates with those other plugins and themes seamlessly and will work perfectly, the link to the widget/section pages and posts may not always be added since they cannot be detected.

    Thanks.

    Kind regards,
    Elvis.

    Thread Starter jjazzbel

    (@jjazzbel)

    Thank you, Elvis, I was thinking it had something to do with all of the Event Calendar posts including [event/] prior to the post name in the url, which would require additional logic to see the actual path. I wonder if there is something I could customize in additional css as a work-around.

    https://www.xxx.com/event/post_name

    Plugin Author bradvin

    (@bradvin)

    hi @jjazzbel

    You could try adding the custom post type to a filter which will allow FooGallery to save the usage. That is assuming that the events plugin adds a custom post type for adding new events. If so, then you can continue below:

    First, you need to find out what the custom post type is. So in your example, it could be event.

    Then add this custom code to your theme’s function.php file:

    add_filter('foogallery_allowed_post_types_for_attachment', 'my_override_for_usage' );
    
    function my_override_for_usage( $types ) {
        $types[] = 'event';
        return $types;
    }

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Gallery usage on posts or pages not working for modern tribe event posts’ is closed to new replies.