Posts

Collectively, posts make up the blog (or news) section of your site. Posts are generally listed according to date, but can also be tagged or filed into categories.

At its most basic, a post consists of a title and some content. In addition, WordPress will add some required metadata to every post: an ID number, an author, a publication date, a category, the publication status, and a visibility setting. There are a number of other things that may be added to posts, but the aforementioned are the essentials. Figure 4-1 shows the basic post editing screen.

Figure 4-1. The post editing screen, using the Visual editor
Figure 4-2. To find a post's ID, look at your browser's status bar while you hover over the title.

You'll occasionally need to locate the ID of a post or page, but it isn't visible on any of the Edit screens. To find it, take a look at your URL while you're editing a post or page or while you hover over a post on the Edit screen (Figure 4-2). The ID is the number at the end of the URL. In this case, the URL is example.com/wp-admin/post.php?action=edit&post=12 which means the ID is 12. If you prefer, you can install a plugin like Simply Show IDs, which will display the IDs next to the post titles on the Edit Posts screen.

0 0

Post a comment