Skip to content

Commit

Permalink
Add all the required pages to the setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwoodnz committed Dec 11, 2023
1 parent 37313a4 commit 00116df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion env/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ wp rewrite structure '/%year%/%monthnum%/%postname%/'
wp rewrite flush

# Create the pages required.
wp post create --post_type=page --post_title=Dashicons --post_status=publish --post_name=dashicons
wp post create --post_type=page --post_title=Home --post_status=publish --post_name=home
wp post create --post_type=page --post_title=Reference --post_status=publish --post_name=reference
wp post create --post_type=page --post_title=Resource --post_status=publish --post_name=resource
wp post create --post_type=page --post_title=Dashicons --post_status=publish --post_name=dashicons --post_parent=`wp post list --post_type=page --name=resource --format=ids`

# Set the homepage to be the home page.
wp option update page_on_front `wp post list --post_type=page --name=home --format=ids`
Expand Down

0 comments on commit 00116df

Please sign in to comment.