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

Provision script is removing content from Homepage #70

Open
charl0tee opened this issue Dec 9, 2024 · 2 comments
Open

Provision script is removing content from Homepage #70

charl0tee opened this issue Dec 9, 2024 · 2 comments
Assignees

Comments

@charl0tee
Copy link
Contributor

The code on these lines should only be called the 1st time, when creating Wordpress. Otherwise, it removes the content of the homepage each time we launch the project

# Update Sample Page to be the Home
$WPCLI post update 2 --post_title="Home" --post_content='<!-- wp:heading {"level":1} --><h1 class="wp-block-heading">Home</h1><!-- /wp:heading -->'
$WPCLI option update show_on_front page
$WPCLI option update page_on_front 2

@charl0tee
Copy link
Contributor Author

cc @snugglejuice FYI

@kuuak
Copy link
Contributor

kuuak commented Dec 19, 2024

Good catch!

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

No branches or pull requests

2 participants