• Morning!

    I am having two issues with FooGallery. Problem #2 is more or less resolved (but may be of interest as it may be a code conflict), and the first problem remains an issue.

    Problem #1:

    I installed FooGallery followed by the FooGallery Albums and Owl Carousel extensions. The FooGallery shortcode works fine out of the box, but the foogallery-album shortcode does not bring up anything when inserted on a page.

    Since the site I’m working on is a combination of a premium theme and half a million plugins, I suspected a conflict. Thus, I deactivated all plugins except Maintenance, FooGallery, FooBox Free Image Lightbox, and FooGallery Owl Carousel Template – and defaulted the theme to Twenty Thirteen. I loaded my test page with both album and gallery shortcode and once again, only the gallery showed up. Ditto for Twenty Fourteen and any other theme, with the same plugin settings.

    I opened Inspect Element in Google Chrome on the resulting page, and it shows that the album HTML code is absent. My test page has the album shortcode preceding the gallery code, as follows (from the text editor):

    `<h2>KiDZ Event?Albums:</h2>[foogallery album id=”998″]</p><br />
    <p>?</p><br />
    <p>[foogallery id=”991″]`

    …yet, the page HTML container <div class=“entry-content”> skips to <div id=“foogallery-gallery-991” class… without any evidence of the album code.

    I have yet to solve this problem.

    Problem #2 is as follows – and it is possibly more gnarly, code-wise:

    If I swap permalink settings (with all or just the aforementioned four plugins activated), my gallery page (at URL “…/gallery/”) will become a list of my latest blog posts. Again, this happens regardless of the site theme, and swapping back to the previous permalink setting has no effect – I WILL still get the blog list at that URL unless I deactivate FooGallery. However, if I deactivate FooGallery, the URL “…/gallery/” gets confused again, and will direct to my home page. Fixing this requires shuffling the permalinks again before the URL draws the correct page.

    HOWEVER – this ONLY happens if the gallery URL is named “…/gallery/.” It does NOT happen if I rename the gallery to anything else (e.g.: “…/knc-gallery/”). If renamed, the page will show up as intended (minus foogallery-album showing up, of course), regardless of plugins, settings, tomfoolery with the permalinks, or the theme at any given moment.

    I hope this helps in the future development of this plugin – and if you have any ideas as to why the album shortcode isn’t working, that would be excellent.

    Thank you very much!

    -Kurt

    https://www.ads-software.com/plugins/foogallery/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author bradvin

    (@bradvin)

    hi @wsp-kk,

    Sorry for the slow response, for #1, make sure your shortcode is

    [foogallery-album id=”998″]. It seems you left out the dash btw “foogallery” and “album”.

    For #2 – the albums extension adds some permalink logic to handle showing galleries for an album, so I guess that is causing your issue. I will try and see if I can reproduce this on my side and find a way round it

    Thread Starter kidznc

    (@wsp-kk)

    My mistake – taking out the dash was one of my shot-in-the-dark attempts to see if it would work any other way. I just double-checked it with the dash (copy-pasted straight from your post), and the album still fails to show up. Inspecting it through Code Inspector shows the following written by BlackStudio TinyMCE widget where the album should show up on the page:

    <div class="so-panel widget widget_black-studio-tinymce panel-last-child" id="panel-515-0-0-1">
    <div class="textwidget">
    <p>
    </p>
    </div>

    The FooGallery Album shortcode should appear between the paragraph brackets. The area is blank.

    As for #2: So long as I don’t use …/gallery/ as a page, there isn’t a problem. Having users avoid that naming convention may be the best way around it.

    -Kurt

    Thread Starter kidznc

    (@wsp-kk)

    Incidentally – aside from the ongoing album problem – the gallery plugin itself is working great – just used it for the first time:

    https://kidzneurosciencecenter.com/2015/05/28/kidz-task-force-2015/

    -Kurt

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘#1: FooGallery album shortcode not working, permalinks to /gallery/ acting up’ is closed to new replies.