Skip to content
Tutorials Center
My learning

Topics

Lesson 6 of 68 Β· Using the Dashboard

Managing Posts, Pages, Categories and Tags

Use the WordPress dashboard for content: posts versus pages, statuses, scheduling, previews, trash, private and password-protected content, categories, tags and featured images.

Before you write themes and plugins, you should know what an editor does all day: add a post, fix a typo, schedule an announcement, tidy up old pages, organize content with categories and tags. This lesson walks through those tasks in the WordPress dashboard and shows what happens in the database behind each one. That knowledge pays off later: a post status is just a string in a column, and a category is just a row in a taxonomy table.

You can follow along in a local install (Local Development Environment). The code in the runnable examples is plain PHP that imitates what WordPress does. It does not use WordPress itself, because WordPress cannot run on this site; all WordPress code in code blocks is read-only.

Posts and pages

WordPress has two built-in content types for writing:

Posts Pages
Meant for Time-based content: news, articles, updates Timeless content: About, Contact, Pricing
Listed Newest first in the blog and archives, in feeds Not in feeds, usually in menus
Organized by Categories and tags Parent pages (a hierarchy) and page templates
Has a date Yes, and it matters Stored, but rarely shown

Both live in the same database table, wp_posts, and differ only by the post_type column (post or page). You can add other types, see Custom Post Types.

The dashboard menu Posts > All Posts lists them with columns for title, author, categories, tags, comments and date, plus quick links (Edit, Quick Edit, Trash, View) and bulk actions for changing many items at once.

Adding a post

Open Posts > Add New. The block editor (Gutenberg) shows a title field and a canvas where each paragraph, image or heading is a block. The right sidebar has two tabs: Post (status, publish date, permalink, categories, tags, featured image, excerpt, discussion) and Block (settings of the selected block). A typical workflow:

  1. Type the title. WordPress derives the slug (the URL part) from it.
  2. Write content. Use headings (H2, H3) to structure it; press / to insert blocks.
  3. Set the category and tags, a featured image, and an excerpt if the theme shows one.
  4. Save draft, Preview, then Publish (or schedule).

Post statuses

Every post has a status, stored in wp_posts.post_status:

Status Meaning Visible to visitors?
auto-draft Created when you opened "Add New" and not touched yet No
draft Work in progress No
pending Submitted for review No
future Scheduled: will publish at a set date No, until the date
publish Live Yes
private Published but visible only to logged-in users with permission Only to editors and admins
trash In the trash, kept for 30 days by default No
stateDiagram-v2
    [*] --> auto_draft
    auto_draft --> draft: first save
    draft --> pending: submit for review
    pending --> publish: editor approves
    draft --> publish: publish now
    draft --> future: choose a future date
    future --> publish: date arrives (WP-Cron)
    publish --> draft: switch to draft
    publish --> trash: move to trash
    draft --> trash
    trash --> draft: restore
    trash --> [*]: delete permanently

A post moves between a small number of statuses; WordPress decides the status on save from the date and the requested action.

The next demo imitates the rule WordPress applies when you press the main button: a post with a future date becomes future, otherwise publish. In a real site a scheduled post is published by WP-Cron (see Caching and WP-Cron): a visit to the site triggers a check, so a quiet site can publish a few minutes late.

PHP Scheduling logic: draft, future or publish (stand-in)

Press Run (or Ctrl + Enter) to see the result here.

Program input Β· what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with fgets(STDIN)), it gets the next line from this box.

The "Launch day" post has a date in the past, so it goes live at once. The other two are future. When cron runs the next morning, "Tomorrow 9am" flips to publish, and "Next week" stays scheduled.

Previewing, editing and updating

Preview (in the editor's top bar) opens the post in a new tab, in a desktop, tablet or mobile size, exactly as visitors would see it, without publishing. Use it to catch layout problems on small screens before going live. After publishing, the same button becomes Update. Every save creates a revision you can compare and restore from the Revisions panel; WordPress keeps them in wp_posts too (with post_type = revision).

Quick Edit (the link under a title in the list) changes title, slug, date, status, categories and tags without opening the editor, and Bulk Edit applies the same change to many posts. Editing published content is the cheapest SEO work you have: fixing outdated facts, improving the title and meta description, adding internal links and refreshing an old post often does more than writing a new one.

Trash, restore and permanent delete

Move to Trash does not delete anything. The post gets the status trash, disappears from the site and from the main list, and sits in the Trash view for 30 days (the constant EMPTY_TRASH_DAYS controls this). From there you can Restore it (back to draft) or Delete Permanently, which removes the post and its metadata and cannot be undone. Deleting pages works the same way; if a deleted page had child pages, those move up a level. Use trash instead of permanent deletion whenever you are not sure, and keep a redirect from the old URL if the page ever had visitors or links.

Private and password-protected content

Two visibility options sit next to the status in the sidebar:

  • Private: only logged-in users who can read private posts (editors, administrators) see it. Use it for drafts that are nearly ready, internal notes or client previews that you do not want indexed.
  • Password protected: the post is public, but the content is replaced by a password form until the visitor enters the password you set. This is light protection for a page you share with a few people; it is not real security for sensitive data. To make a whole site private use a "coming soon" plugin or HTTP basic authentication on the server.

Categories and tags

Both are taxonomies, ways of grouping posts, stored in the tables wp_terms, wp_term_taxonomy and wp_term_relationships (see Database Schema).

Categories Tags
Purpose Broad topics, like chapters of a book Specific details, like index entries
Hierarchy Yes (parent and child categories) No, flat
Required Every post has at least one; the default is "Uncategorized" Optional
Typical count per post 1 to 3 3 to 10

Good practice:

  • Plan a short, stable list of categories (5 to 10). A post with seven categories is organized by nothing.
  • Use tags for details that cross categories, and avoid near-duplicates (wordpress, WordPress, wp). Check Posts > Tags for typos.
  • Give each category a description; many themes show it on the archive page, and it helps SEO.
  • Set a useful default category under Settings > Writing instead of "Uncategorized".
  • Editing a category or tag changes its name, slug, parent and description; the posts keep their link. Deleting a category does not delete its posts; a post left with no category gets the default one. Deleting a tag simply removes it from each post.
  • Add terms from the post sidebar or in Posts > Categories, where the Parent dropdown builds the hierarchy. To merge two categories, bulk-edit the posts of one into the other and then delete the empty one.
PHP Slugs, term counts and the default category (stand-in)

Press Run (or Ctrl + Enter) to see the result here.

Program input Β· what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with fgets(STDIN)), it gets the next line from this box.

The slug function shows why slugs are safe in URLs: every run of characters outside a-z and 0-9 becomes one hyphen. (Real WordPress also transliterates accented letters, so "Über uns" becomes uber-uns; this stand-in simply drops them and gives ber-uns.) The second half shows the two rules above: an uncategorized post lands in the default category, and deleting a category never deletes posts: only a post left with no category at all moves to the default one.

  • Featured image (post thumbnail): in the Post sidebar choose Set featured image, upload or select an image from the media library, and add alt text if the image carries meaning. Themes use it for the blog list, the top of the post and social previews. Developers read it with get_the_post_thumbnail() (see Images and Post Thumbnails).
  • Excerpt: a short hand-written summary shown in lists and search results; if empty, WordPress cuts the first words of the content.
  • Table of contents: long articles read better with a clickable outline. The block editor gives headings anchor IDs (the Advanced > HTML anchor field), and the core Table of Contents block builds a list from your headings automatically. A plugin or a few lines of code can do the same site-wide. A TOC improves navigation, lets readers jump to the part they need and gives search engines "jump to" links.
  • Copying a post: WordPress has no built-in "duplicate" button in the list view, but the block editor's three-dot menu has Copy all blocks, which you can paste into a new post. Plugins add a one-click clone that copies content, meta and taxonomies; remember to change the new post's slug and set a canonical URL if the copy might compete with the original in search.

Add a link by selecting text and pressing Ctrl+K (or Cmd+K), then type a URL or search your own posts. Options include Open in new tab (add rel="noopener", which WordPress does for you), and for sponsored or untrusted links rel="nofollow". To edit a link click it and choose the pencil icon; to remove it click the unlink icon. Internal links help readers and search engines understand how pages relate, and broken links hurt both, so review old posts now and then.

Check your understanding

Quick check Β· 5 questions

of 5 answered You scored / 5 Β· perfect!

  1. 1. Which pair describes the usual difference between posts and pages?

    Both live in wp_posts and differ by post_type. Posts suit news and articles; pages suit timeless content like About.
  2. 2. You choose a publish date next Friday and press Publish. What status does the post get?

    A date in the future makes the status future, and WP-Cron publishes the post when the date arrives.
  3. 3. What happens to posts when you delete a category?

    Posts are never deleted with their category. A post left without any category is assigned to the default one (Uncategorized unless you changed it).
  4. 4. How long does WordPress keep trashed posts by default?

    EMPTY_TRASH_DAYS defaults to 30. After that, WordPress deletes the post permanently.
  5. 5. Which statement about password-protected posts is correct?

    Password protection hides the content from casual visitors, but it is not a substitute for real access control.

Summary

  • Posts are for time-based content, pages for timeless content; both are rows in wp_posts with a different post_type.
  • A post moves through statuses: draft, pending, future, publish, private and trash; scheduling relies on WP-Cron.
  • Preview before you publish, use revisions to undo mistakes, and use the trash (30 days) instead of permanent deletion when unsure.
  • Categories are a short hierarchical list of broad topics; tags are flat, specific labels; deleting a category never deletes posts.
  • Featured images, excerpts, anchors and a table of contents improve both presentation and search appearance.
  • Private and password-protected visibility are convenience features, not security.

Next: Media Library, Settings and Comments.