team_page_id="$(wp post create --post_title='Members'--post_type=page --post_status=publish --post_content="$members_page_content"--porcelain)"
...
...
@@ -285,4 +283,54 @@ else
echo"Members, about and blog - already configured"
fi
default_blog_post_content="<!-- wp:paragraph -->
<p>This is your first post. Edit or delete it, or write a new post!</p>
<!-- /wp:paragraph -->
<!-- wp:heading {\"level\":3} -->
<h3>Writing a new blog post</h3>
<!-- /wp:heading -->
<!-- wp:list {\"ordered\":true} -->
<ol><li>To write a new blog post, click on 'Posts' in the administration menu. </li><li>Next to the title, click the button 'Add New'.</li><li>Get writing!</li><li>Don't forget to include any document options in the sidebar.</li><li>When you are ready, you can either save the post, Preview it, or Publish.</li></ol>
<!-- /wp:list -->
<!-- wp:heading {\"level\":3} -->
<h3>Deleting a post</h3>
<!-- /wp:heading -->
<!-- wp:list {\"ordered\":true} -->
<ol><li>Click on 'Posts' in the administration menu. </li><li>Navigate to the post you want to delete and hover over the title. You should see the links: 'Edit', Quick Edit', 'Trash' and 'View'. Trash is in red.</li><li>Click 'Trash'. This moves your blog post into the trash where it is always retrievable unless you delete it permanently.</li><li>To retrieve your blog post, Click on the 'Trash' navigation link next to 'All' at the top of the table of blog posts.</li></ol>
<!-- /wp:list -->
<!-- wp:heading {\"level\":3} -->
<h3>Removing the blog from your navigation menu</h3>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>If you decide you don't want a blog for your group or team then you should remove it from the site's navigation menu.</p>
<!-- /wp:paragraph -->
<!-- wp:list {\"ordered\":true} -->
<ol><li>In the administration menu, click on 'Appearance'</li><li>In the Appearance sub-menu, click 'Menus'</li><li>Find the menu item 'Blog' and click the arrow to reveal options.</li><li>Click 'Remove'</li></ol>
<!-- /wp:list -->
<!-- wp:paragraph -->
<p>Don't worry, you can always add it again. Doing this doesn't delete the blog, or the blog posts, but just removes the link in the navigation.</p>
<!-- /wp:paragraph -->";
# Update blog post content
wp post update 1 --post_title="Welcome to your new group or team blog!"--post_content="$default_blog_post_content";