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

Investigate why shortcodes don't work in template-parts #5

Closed
bobbingwide opened this issue Oct 28, 2020 · 0 comments
Closed

Investigate why shortcodes don't work in template-parts #5

bobbingwide opened this issue Oct 28, 2020 · 0 comments
Assignees
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@bobbingwide
Copy link
Owner

In blocks.wp-a2z the widget areas are mostly populated by shortcodes.
These don't appear to work in the template parts used in Full Site Editing.
Is this a limitation of Full Site Editing or am I doing something wrong?
image

Answer: Something wrong.
I added a shortcode to the content of the page and they all started expanding.
It looks like I'll need to implement some logic to ensure shortcodes are enabled when it's a FSE theme.
It could be as simple as do_action( "oik_add_shortcodes" ); in functions.php

@bobbingwide bobbingwide added help wanted Extra attention is needed question Further information is requested labels Oct 28, 2020
@bobbingwide bobbingwide self-assigned this Oct 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant