Chapter 1
IN THIS CHAPTER
Navigating the Edit Post screen
Discovering the block editor
Inserting new and editing existing blocks
Publishing your post
Creating a unique work space for writing
It’s time to write your first post on your new WordPress site! I leave it to you to decide on the topic you write about and the writing techniques you use to get your message across; I have my hands full writing this book! I can tell you, however, all about the techniques you’ll use to write the wonderful passages that can bring you fame. Ready?
This chapter covers everything you need to know about the basics of publishing a post on your site, from writing a post to formatting, categorizing, tagging, and publishing it to your site.
Composing a post is a lot like typing an email: You give it a title, you write the message, and you click a button to send your words into the world. By using the different options that WordPress provides — content blocks, discussion options, categories, and tags, for example — you can configure each post however you like. This section, however, covers the minimal steps you take to compose and publish a post on your site.
Follow these steps to write a basic post:
Click the Add New link on the Posts menu of the Dashboard.
The Edit Post screen opens, as shown in Figure 1-1.
Type the content of your post in the area below the Add Title field.
The first time you visit the Edit Post screen, this area displays a message that says Start writing or type to choose a new bloc
k. I cover blocks in “Using the block editor” later in this chapter. For the purposes of this section, you'll type the text of your new post in this area.
Click the Save Draft link, located in the top-right corner of the Edit Post screen.
The Save Draft link changes to a message that says Saved
.
WordPress has a built-in autosave feature to make sure that your content is saved and protected from being lost. Imagine spending an hour writing a long post and then the power goes out due to a storm in your area! You don’t need to worry about all your work being lost because WordPress thoughtfully saved it for you. The default interval is 10 seconds, so if you don’t click the Save Draft link, WordPress saves your post for you automatically. When the storm is over, you’ll find a draft of the post you were working on before lightning struck.
At this point, you can skip to “Publishing Your Post” later in this chapter for information on publishing your post to your site, or you can continue with the following sections to discover how to refine the options for your post.
In 2018, WordPress introduced a brand-new way of writing and editing content with version 5.0 of the software. The purpose of this new editing experience is to put more publishing control and formatting options in the hands of the users in a way that doesn’t require any specialized knowledge or training in the technology that makes it happen, such as PHP, JavaScript, HTML, or CSS. Now editors can create and format posts and pages more easily than ever before. You can insert images, change font sizes and color, and create tables and columns in ways that you weren’t able to before the 5.0 version of WordPress, released in December 2018.
The idea behind the block editor is to give users a variety of blocks with which to create posts and pages on their WordPress sites. Compare WordPress blocks to the blocks you played with as a child; you were able to take one block and stack it on top of the next block and the next to build a tower of blocks to the moon. Each block within the WordPress editor gets filled with content (text, images, video, and so on) and is stacked atop another block with more content, and so on, until you have a full page of content created with blocks that you can configure with options to control formatting and display and move around on the page to create the experience you want for your readers.
This section of the chapter takes you through the new block editor in WordPress.
By default, when you first load the Edit Post screen in your Dashboard (refer to Figure 1-1), the area where you type the text of your post consists of standard paragraph blocks. Hover over this area with your mouse, and you see that the block is outlined, as shown in Figure 1-2.
You can use the standard paragraph blocks to write your posts and leave it at that. But the block editor has many features that give you a variety of options for formatting your content by using a variety of blocks.
You can discover the different types of blocks available by clicking the small plus sign in the top-left corner of the Edit Post (or Edit Post) screen. Clicking that icon displays a drop-down menu of blocks, as shown in Figure 1-3.
Each block you find in the block editor has settings that give you display options such as color settings, font size and color, and width. In this section, you discover what blocks are available for you to use. In “Configuring block settings” later in this chapter, you see how to configure the block settings.
In a new installation of WordPress, the following blocks are available for you to use:
Code is Poetry. – WordPress
example in Figure 1-4 is a Pullquote.WordPress gives you a variety of ways to add a new block to your post or page. As you work with the block editor more and more, you’ll develop a favorite method of adding new blocks based on your preferences and writing style.
In a brand-new post, the Edit Post screen gives you the title field to type your page title in and a Paragraph block to write the content of your page. From there, you can add new blocks to add different types of content to your page. You can insert a new block into your page by using any of the following methods:
Use slash commands. When you click inside a standard Paragraph block and press the slash (/) key on your keyboard, a list of blocks appears. This list enables you to add a block without moving your hands away from the keyboard.
Figure 1-11 shows the blocks that are available when you press the slash key. You can navigate to the block you need by pressing the down-arrow key and then pressing Enter to select it, or you can finish typing the name of the block and then press the Enter key to insert it into your page. This editing experience is intended to be mouseless; you can keep typing away and adding blocks from your keyboard.
Each block on the block editor menus has options so you can configure display settings for your content, such as font size, font color, background color, and block width and/or height. Each block has its own set of options.
In this section, you discover how to configure the settings and options for four of the most commonly used blocks:
You configure options for the block you’re using in two areas of the Edit Post screen: the block itself and the settings panel on the right side of the screen.
You use the Paragraph Block to create a basic block of text. Add the block to your post or page and then add the text inside the box provided. When you’re working within this block, a small toolbar of options appears at the top of the block, as shown in Figure 1-12.
This toolbar provides a variety of options, including the following (from left to right):
strikethrough text.
Add to Reusable Blocks: Click this option to save the block you’re currently using to a library of blocks that you can reuse in other places on your site. This feature is helpful when you create blocks on one page and want to use the same blocks on other pages. Saving a block as a Reusable block makes it available for use on other pages, exactly as it appeared when you saved it. Editing the block applies those changes everywhere the block is used on your site.
When you create a Reusable block, it’s stored on the Blocks menu (refer to Figure 1-3) in a new section labeled Reusable.
Additional options for the Paragraph block are available in the settings panel on the right side of the Edit Post screen, as shown in Figure 1-13.
Those options include
You use the Image block to add a single image to your post. Add the block to your post or page and then use one of these options:
lion.jpg
and dragged it from my computer to the WordPress block editor to add it to the Image block I was using.When you’re working within this block, notice the small toolbar of options that appears at the top of the block, as shown in Figure 1-19. This toolbar provides a variety of options for the Image block, including the following (from left to right):
Full Width: Click this option to increase the width of the image to the width of the screen you’re viewing the content on. In Figure 1-20, you see a post that I created with a full-width image. Notice that the left and right edges of the image extend all the way to the left and right sides of the viewing screen.
If you don’t select Wide Width or Full Width on the Image block toolbar, you can set the desired width of the image in the Image block settings panel, as covered in the next section.
Additional options are available for the Image block in the settings panel on the right side of the Edit Post screen, as shown in Figure 1-21.
The options include
You use the Media & Text block to insert a two-column block that displays media (image or video) and text side by side. When you add the block to your post, it adds a block with the image settings on the left and text settings on the right, as shown in Figure 1-22.
In this block, you add the media in the Media Area section on the left, using the method covered in “Image block settings” earlier in this chapter and adding your text in the Content section on the right, as shown in Figure 1-23.
When you’re working within this block, a small toolbar of options appears at the top of the block, as shown in Figure 1-24. This toolbar provides a variety of options for the paragraph block, including the following (from left to right):
Additional options for the Media & Text block are available in the settings panel on the right side of the Edit Post screen (refer to Figure 1-24). Those options include
You use the Pullquote block to insert a quotation with a citation and give it special design emphasis to set it apart from the rest of the text on your site. Figure 1-4 earlier in this chapter shows what a Pullquote block looks like.
When you’re working within this block, a small toolbar of options appears at the top of the Pullquote block, as shown in Figure 1-26. This toolbar provides a variety of options for the block, including the following (from left to right):
Change Block Type: Clicking this option allows you to change the style or type of block you’re currently using. You can change the style by choosing Regular or Solid Color from the drop-down menu. By default, Pullquote style is Regular.
You also can change the block type. If you want to change from a Pullquote block to a Quote block, for example, click the Change Block Type icon and then select the Quote block to swap it. The only block type you can switch to from a Pullquote block is a Quote block.
strikethrough text.
Additional options are available for the Pullquote block in the settings panel on the right side of the Edit Post screen, as shown in Figure 1-27.
The options include
If you’re a total geek like me and like to work with code, or if you’re curious to see the underlying HTML code for the blocks you’re creating, WordPress provides a way to do that. In the top-right corner of the Edit Post screen is an icon that looks like three dots stacked on top of one another. Hover your mouse over this icon, and you see the label Show More Tools & Options. Click the icon to open a menu of options. To view the code versions of the blocks you’ve created on your site, choose the Code Editor option on the Editor section of the menu. This action changes the display of your post content to code rather than the default visual editor. Figure 1-29 shows a post in code.
After you write the post, you can choose a few extra options before you publish it for the entire world to see. On the right side of the Edit Post screen is the settings panel, which you should be familiar with from earlier sections of this chapter. Click the Document link at the top to view the options you can set for the post globally (See Figure 1-30.). Unlike settings for individual blocks, the Document settings pertain to the entire post.
The Document settings include the following:
https://domain.com
), you can adjust the part of the URL that appears in the link after the final slash at the end of your domain. For a post titled “WordPress Tips,” WordPress automatically creates a URL from that title like http://domain.com/wordpress-tips
. Use the URL field in the Permalink section of the settings panel to set different words for your post (or page) from the ones that WordPress automatically creates for you. You could shorten the slug for the post title WordPress Tips to wordpress so that the URL for the post is http://domain.com/wordpress
.Categories: You can file your posts in different categories to organize them by subject. (See more about organizing your posts by category in Book 3, Chapter 5.) Select the check box to the left of the category you want to use.
Don't see the category you need in the Category section? Click the Add New Category link and add a new category right there on the page you’re using to create or edit your post.
You’ve given your new post a title and written the content of the post by assembling all the content blocks you need to create the post you desire. Maybe you’ve even added an image or other type of media file to the post (see Book 4, chapters 3 and 4), and you’ve configured the tags, categories, and other options in the settings panel. Now the question is this: To publish or not to publish (yet)?
WordPress gives you three options for saving or publishing your post when you’re done writing it. These options are located in the top-right corner of the Add New (or Edit) Post screen. Figure 1-31 shows the available options: Save Draft, Preview, and Publish.
The options for saving or publishing your post include
Saved
, indicating that your post has been successfully saved as a draft. The action of saving as a draft also saves all the post options you’ve set for the post, including blocks, categories, tags, and featured images. You can continue editing now, tomorrow, the next day, or next year; the post is saved as a draft until you decide to publish it or delete it. Posts saved as drafts can’t be seen by visitors to your site. To access your draft posts in your Dashboard, visit the Posts screen (choose Posts ⇒ All Posts), and click the Drafts link on the top menu.Do you really want to publish?
This panel even provides the option to double-check some of your settings, such as visibility and date. Click the Publish button at the top a second time to publish the post to your website.While I write this book, I have copy editors, technical editors, and proofreaders looking over my shoulder, making recommendations, correcting typos and grammatical errors, and telling me when I get too long-winded. You, on the other hand, probably aren’t so lucky! You are your own editor and have full control of what you write, when you write it, and how you write it.
You always can go back to edit previous posts to correct typos, grammatical errors, and other mistakes by following these steps:
Find the post that you want to edit by clicking the All Posts link on the Posts menu of the Dashboard.
The Posts screen opens, listing the 20 most recent posts you’ve created.
To filter that listing of posts by date, choose a date from the All Dates drop-down menu at the top of the Posts screen (choose Dashboard ⇒ Posts). If you choose January 2019, the Posts page reloads, displaying only those posts that were published in January 2019.
You also can filter the post listing by category. Choose your desired category from the All Categories drop-down list.
When you find the post you need, click its title.
Alternatively, you can click the Edit link that appears below the post title when you hover your mouse over it.
The Edit Post screen opens. In this screen, you can edit the post and/or any of its options.
If you need to edit only the post options, click the Quick Edit link that appears below the post title when you hover your mouse over it. A Quick Edit menu appears, displaying the post options that you can configure, such as title, status, password, categories, tags, comments, and time stamp. Click the Update button to save your changes.
Edit your post; then click the Update Post button.
The Edit Post screen displays a message that the post has been updated.
Congratulations on publishing your first post on your site! This chapter took you through the mechanics of working with the WordPress block editor, creating content, and setting your post options to get you familiar with the tools WordPress provides for publishing content. The next chapters in this book help you discover specific content management options such as categories, tags, and image galleries.
18.226.222.12