#1: FooGallery album shortcode not working, permalinks to /gallery/ acting up
-
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
- The topic ‘#1: FooGallery album shortcode not working, permalinks to /gallery/ acting up’ is closed to new replies.