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

Ability to specify number of columns when using shortcodes/blocks like [lifterlms_courses] or [lifterlms_memberships] #2846

Open
brianhogg opened this issue Jan 9, 2025 · 1 comment
Assignees

Comments

@brianhogg
Copy link
Contributor

Is your feature request related to a problem? Please describe.
There's no way to change the number of columns when using a particular shortcode, only globally via the lifterlms_loop_columns filter.

Describe the solution you'd like
Adding a "columns" option to the shortcode and block would give more flexibility.

@ideadude ideadude moved this to Awaiting Triage in Development Jan 9, 2025
@ideadude ideadude self-assigned this Jan 9, 2025
@brianhogg
Copy link
Contributor Author

Could perhaps add a filter on lifterlms_loop_columns right before rendering the shortcode based on an attribute, and then remove it afterwards.

@brianhogg brianhogg assigned brianhogg and unassigned ideadude Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Awaiting Triage
Development

No branches or pull requests

2 participants