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

Previewing custom meta for unpublished nav menu items in the customizer does not work #139

Open
theenoahmason opened this issue Nov 26, 2022 · 0 comments
Assignees
Labels
bug Something isn't working wordpress issue Something is wrong with WordPress itself

Comments

@theenoahmason
Copy link
Member

There is a caveat when working with WP Backstage Nav Menu Items in the WordPress Customizer. Since WordPress doesn't publish newly added menu items added in the Customizer until the changes are published, previewing of custom meta fields that may or may not be used in the actual output of the menu item will not be previewable. The Customizer assigns a negative post ID (placeholder), and does not save the menu item as a post in the DB until the customizer changes are published, meaning there is no way to get the post meta for this non-existing post. We will continue to investigate ways to get around this, but at this time there simply is none. In the mean time, previewing works great for custom meta on menu items that do already exist in the DB.

This ticket will be used to track findings on this issue.

@theenoahmason theenoahmason self-assigned this Nov 26, 2022
@theenoahmason theenoahmason added bug Something isn't working wordpress issue Something is wrong with WordPress itself labels Nov 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wordpress issue Something is wrong with WordPress itself
Development

No branches or pull requests

1 participant