Skip to content
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 and attributes not working? #2153

Open
DeBAAT opened this issue Feb 21, 2025 · 1 comment
Open

Gallery shortcode and attributes not working? #2153

DeBAAT opened this issue Feb 21, 2025 · 1 comment

Comments

@DeBAAT
Copy link

DeBAAT commented Feb 21, 2025

When writing a post on a playground site, I would like to show some images in a gallery.
I use a shortcode for this e.g. "[gallery ids="1,2,3,4"]".
The images do show only all in a vertical row, in a single column. The shortcode attributes like "Columns="4"" don't seem to work.
Is this a bug or a feature? Or are shortcodes not supported in the playground?

@swissspidy
Copy link
Member

This probably just means the theme you are testing doesn't have CSS for multi-column gallery shortcodes.

Most modern themes like the new default theme, Twenty-Twenty Five, are block-based and encourage to use blocks for things like that. So I recommend using the Gallery block instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Inbox
Development

No branches or pull requests

2 participants