-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gallery Shortcode results in rebuild error #34
Comments
See https://willfaught.com/paige/shortcodes/gallery/#figure. You have to close the image shortcode with
|
Hello Will, Thanks for the suggestion! I closed the image shortcodes, however it still errors on rebuilding:
This is the contents of
I'm getting the same error whether one, the other, or both of the image shortcodes are closed. This is my version and vendor info: |
You made the closing gallery tag self-closing, which is invalid:
Remove the last /. When in doubt, I suggest starting with the example code, and adjusting it to your needs. |
Oh I see! Thank you very much. As I mentioned in the opening post, I did use your example code directly from your shortcode page. It appears under the "Align" example (which you can see is what I had used as a demo) the sample closing gallery tags are self-closed. I had no idea that was invalid code. However, even removing the last / resulted in a rebuild error. What ended up working was removing that final /, and also removing the closing / from both image shortcodes inside the gallery shortcodes. The final functional code looks like this:
And just to compare, this is the code currently displayed in your example page:
Thank you for leading me in the right direction! |
Just wanted to point out as it's related, but the sample code given in the gallery figure section also is resulting in the same problem with the same solution; simply removing the self-closing slashes from all of the lines of the Original sample code:
Working code:
Hope this helps someone else down the line! |
I see, I misunderstood your first post. My apologies for the mix-up. This is indeed a problem with the documentation. I've fixed it in v0.64.1, which is now deployed live. Thank you for your report! |
Hi Will, I'm trying to use your gallery shortcode but end up getting an assembly error:
The only thing in my
test.md
isThe above gallery shortcode comes directly from your gallery shortcode example page
The text was updated successfully, but these errors were encountered: