Skip to content
Tutorials Center
My learning

Topics

Lesson 7 of 68 ยท Using the Dashboard

Media Library, Site Settings, Permalinks and Comments

Manage uploads and image sizes, set the site icon, configure General, Reading, Discussion and Permalink settings, control comments and recover a lost admin login.

Most of the work of running a WordPress site happens in three places: the Media Library (every file you upload), the Settings menu (a few dozen options that change how the whole site behaves) and the Comments screen. This lesson tours them, explains the reasoning behind the important options and shows how each setting is stored: as a row in the wp_options table, readable with get_option() (see The Options API).

The runnable examples are plain PHP stand-ins that imitate WordPress's logic; the WordPress functions in code blocks are read-only.

The Media Library

Everything you upload (images, PDFs, audio, video, documents) lands in the Media Library (Media > Library). Each file becomes a row in wp_posts with post_type = attachment, and the file itself is stored in wp-content/uploads/, normally in year and month folders (uploads/2026/03/photo.jpg).

Uploading

  • Drag and drop files into the library page or straight into the editor.
  • Add New Media File opens a file picker.
  • In the editor, an Image block lets you upload or pick from the library.
  • A hosting limit applies: the maximum upload size comes from PHP settings (upload_max_filesize and post_max_size) and is shown on the upload screen. WordPress also only accepts allowed file types (JPEG, PNG, GIF, WebP, PDF, MP4, MP3 and similar); SVG and other risky types are blocked unless you add support deliberately.

Details, alt text and organization

Click a file to open its attachment details:

Field Use
Alt text What the image shows, for screen readers and when the image fails to load; also used by search engines. Leave it empty for purely decorative images
Title Internal name, shown in the library
Caption Visible text under the image
Description Longer text, shown on the attachment page
File URL The address you can copy into other places

The library has a grid view (thumbnails, good for images) and a list view (with filters by type and date, search, bulk delete and the "Uploaded to" column showing which post uses a file). WordPress has no folders; the practical way to stay organized is a naming convention and filters by month.

Name files before you upload them. The file name becomes part of the URL and gives search engines a clue. blue-running-shoes.jpg is better than IMG_4821.jpg or final-FINAL2.jpg: lowercase, hyphens instead of spaces, a few descriptive words. WordPress cannot rename a file after upload, but plugins such as Media File Renamer or Phoenix Media Rename do it and update the links. Renaming is also an accessibility and SEO benefit, together with alt text.

Editing images

Select an image and choose Edit Image. You can crop, rotate, flip and scale (by entering a new width or height, keeping the proportion). The original is kept so you can restore it; saving edits creates new files. Do not enlarge small images: scaling up only blurs them. Scale down large photos (a 6,000 pixel wide camera photo is far bigger than any page needs) before upload.

Image sizes

When you upload an image, WordPress makes several smaller copies, called sub-sizes, and the theme picks the best one for each place. Settings > Media sets the default maximum dimensions:

Size Default maximum Typical use
Thumbnail 150 x 150 (cropped) Lists, gallery grids
Medium 300 x 300 Inline images
Large 1024 x 1024 Wide content
Big image threshold 2560 px Larger uploads are scaled down automatically

Themes and plugins can add their own sizes with add_image_size(); see Images and Post Thumbnails. The HTML output contains a srcset attribute so the browser downloads the smallest file that fills the space.

PHP Which sub-sizes does an upload produce? (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.

A landscape 4000 by 3000 photo becomes 300 by 225 and 1024 by 768; the portrait 600 by 1800 image is limited by its height. An 800 by 600 image is already smaller than large, so no enlarged copy is made.

Video, audio and embeds

You can upload video and audio and place them with the Video or Audio block, but video files are large, so most sites host video on YouTube or Vimeo and embed it. Paste the video's URL on a line of its own: WordPress recognizes it through oEmbed, asks the provider for the embed code and turns the URL into a player. Supported providers include YouTube, Vimeo, Spotify, SoundCloud, X (Twitter), Instagram and Flickr. Embeds can be resized and set to responsive. Because the player loads from a third party, embeds add requests: consider a lightweight "click to load" plugin for pages with many videos.

Keeping the library fast

  • Compress images before upload or with a plugin (Smush, ShortPixel, Imagify), and consider WebP or AVIF versions.
  • Lazy loading (loading="lazy") is on by default for images below the fold.
  • Delete unused files from time to time (Media > Library, filter Unattached), but check first: an unattached image can still be used in a widget or a theme setting.

The site icon (favicon)

The little icon in a browser tab is the site icon or favicon. Go to Appearance > Customize > Site Identity > Site Icon (or Site Editor > Styles > Site icon in block themes) and upload a square image of at least 512 by 512 pixels; WordPress crops and generates the smaller versions (32, 180, 192 pixels) for browsers, Apple devices and Android. Use a simple, high-contrast design that stays readable at 16 pixels. If the old icon stays visible after you change it, clear your browser cache; browsers cache favicons aggressively. Also check that a caching plugin or CDN is not serving the old one.

Settings you should know

The Settings menu is a set of forms; each field is stored as an option. The essential screens:

General

  • Site Title and Tagline: shown in the header and in search results, and the site title appears in the browser tab. Changing the title later is easy (it does not change the URL), but do it deliberately, because it affects branding, search snippets and any text that refers to the old name.
  • WordPress Address (URL) and Site Address (URL): where the core files are and where visitors go. They are usually the same; changing them wrongly can lock you out, so edit them with care and keep a backup.
  • Administration Email Address: receives update, security and new-user notices.
  • Membership: Anyone can register with the New User Default Role (keep it Subscriber; see Capabilities and Roles).
  • Timezone, Date Format, Time Format, Week Starts On: set the timezone to a city (not just a UTC offset), so that daylight saving is handled and scheduled posts go out on time.
  • Site Language.

Reading

  • Your homepage displays: latest posts or a static page (choose a Homepage and a Posts page). A business site normally uses a static front page.
  • Blog pages show at most (posts per page) and Syndication feeds show the most recent items. For each post, a feed can show the full text or a summary; summaries encourage visitors to come to the site and reduce scraping.
  • Search engine visibility: Discourage search engines from indexing this site adds a noindex signal. Useful on a staging site, a common cause of "why isn't my site on Google" if left on after launch.

Writing and Media: default post category and format; the image size limits above.

Discussion: everything about comments (below).

Permalinks: the shape of your URLs (below).

A permalink is the permanent URL of a post. Settings > Permalinks picks a structure made from structure tags:

Tag Replaced by
%year%, %monthnum%, %day% Date parts of the post
%hour%, %minute%, %second% Time parts (rarely useful)
%post_id% The numeric ID
%postname% The slug
%category%, %author% Category slug and author name

The default (Plain) is /?p=123. Almost every site should use Post name, /%postname%/: short, readable and good for search. Date-based structures suit news sites. Choose the structure before you publish: changing it later changes every URL, so you must add redirects. Under the hood, WordPress turns the structure into rewrite rules (see Rewrite Rules and Permalinks), and on Apache these rules live in a file called .htaccess (see Backups, Updates and Maintenance).

PHP Expanding a permalink structure (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.

Note how the same post gets a different address under each structure. If you changed from /%year%/%monthnum%/%postname%/ to /%postname%/ on a live site, every old link would break unless you redirect.

Comments and discussion

Readers can comment on posts when Settings > Discussion > Allow people to submit comments on new posts is on. Other options on that screen:

  • Comment must be manually approved and comment author must have a previously approved comment: moderation rules.
  • Comment Moderation and Disallowed Comment Keys (the older blocklist): hold or trash comments containing certain words, links or IPs.
  • Pingbacks and trackbacks: automatic notices when another site links to yours. They produce a lot of spam, and most sites switch them off (Attempt to notify any blogs linked to and Allow link notifications from other blogs).
  • Avatars: whether to show Gravatar images and which default.
  • Close comments on old posts after a number of days, and threaded comments (replies).

Disabling comments

You can turn comments off at three levels:

  1. Globally for new posts: uncheck Allow people to submit comments on new posts (and the two pingback options) under Settings > Discussion. This does not touch existing posts.
  2. For existing posts: in Posts > All Posts, select all, choose Bulk actions > Edit, set Comments to Do not allow, then Update. (Do the same under Pages.)
  3. Per post: in the editor, Discussion panel, untick Allow comments.

Plugins such as Disable Comments do all of this and remove the menu items. Developers can use add_filter( 'comments_open', '__return_false' ).

Managing and deleting comments

The Comments screen lists comments with Approve, Reply, Quick Edit, Spam and Trash links and the same filters as posts. Spam teaches the anti-spam plugin (Akismet, which is included, or Antispam Bee, which is free and privacy-friendly). Comment plugins such as wpDiscuz or Thrive Comments add voting, live updates and better layouts; Disqus hosts comments outside your database, which adds third-party tracking.

To delete every comment, select all comments on the screen (and raise Screen Options > Number of items if you have many), choose Bulk actions > Move to Trash, then open Trash and click Empty Trash. On a very large site WP-CLI is much faster:

Terminal
# read-only example
wp comment delete $(wp comment list --format=ids) --force

and the equivalent SQL is DELETE FROM wp_comments; followed by cleaning wp_commentmeta. Always back up first (see the backups lesson).

Logging in and recovering access

You open the dashboard at yourdomain.com/wp-admin (or /wp-login.php; for a site in a subfolder yourdomain.com/blog/wp-admin). WordPress redirects you to the login form if you are not logged in. Enter your username or email and password; Remember me keeps you logged in for two weeks.

If you forget the password, click Lost your password?, enter your username or email, and follow the link in the reset email. If email does not arrive (common on a fresh local install or a server without mail), you have three options:

  1. phpMyAdmin: open wp_users, edit your row, set user_pass to a new password and choose MD5 in the function column. WordPress re-hashes it with a stronger algorithm at the next login.
  2. WP-CLI: wp user update admin --user_pass=NewStrongPassword (read-only example).
  3. functions.php: temporarily add wp_set_password( 'NewStrongPassword', 1 ); for user ID 1, load any page once, then remove the line.

Common login problems: Incorrect username or password (check the caps lock and the username), cookies blocked, a security plugin or the host blocking too many attempts, a wrong site address in settings, and a caching plugin caching the login page. Strengthen your login with a unique password, a different username than admin and two-factor authentication (see Security Hardening).

Check your understanding

Quick check ยท 5 questions

of 5 answered You scored / 5 ยท perfect!

  1. 1. Which permalink structure is the common choice for most sites?

    Post name gives short, readable, search-friendly URLs. Choose it before publishing, because changing it later breaks old links.
  2. 2. What is alt text for?

    Alt text is a text alternative for the image. Decorative images can have empty alt text.
  3. 3. Why should you set the timezone to a city name in Settings > General?

    A named timezone knows the daylight-saving rules; a plain offset does not.
  4. 4. How do you stop comments on all existing posts at once?

    The global setting affects only new posts. Bulk edit changes the comment status of existing posts.
  5. 5. A site's pages vanish from Google after launch. Which setting should you check first?

    If 'Discourage search engines from indexing this site' was left ticked from development, search engines are asked not to index the site.

Summary

  • The Media Library stores every upload as an attachment; use descriptive file names, add alt text and scale images before upload.
  • WordPress creates thumbnail, medium and large sub-sizes and prints srcset so browsers download the right one; embeds use oEmbed.
  • The site icon is a square image of at least 512 pixels set in Site Identity.
  • Key settings: site title and address, a named timezone, a static front page, search engine visibility and the new-user role.
  • Choose permalinks (usually /%postname%/) before you publish; changing them later needs redirects.
  • Comments can be disabled globally, in bulk or per post; turn off pingbacks and use an anti-spam plugin.
  • You can recover a lost login with the reset email, phpMyAdmin, WP-CLI or a temporary line in functions.php.

Next: Page Builders, Landing Pages and Plugins.