Jump into concepts and practice - no test required
or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
WordPress General Settings Setup
📖 Scenario: You are setting up a new WordPress website for a small business. To make the site ready for visitors, you need to configure the general settings such as site title, tagline, timezone, and date format.
🎯 Goal: Configure the WordPress general settings by setting the site title, tagline, timezone, and date format using the WordPress admin settings functions.
📋 What You'll Learn
Create variables for site title and tagline with exact values
Set a timezone string variable for the site
Use WordPress functions to update the site title, tagline, timezone, and date format
Ensure the final code updates the WordPress general settings correctly
💡 Why This Matters
🌍 Real World
Setting up WordPress general settings is a common task when launching or customizing a website to match the brand and location preferences.
💼 Career
WordPress developers and site administrators frequently update these settings to ensure the site displays correct information and time settings for users.
Progress0 / 4 steps
1
Create Site Title and Tagline Variables
Create two variables called $site_title and $tagline with the exact values 'My Business Site' and 'Quality Services for You' respectively.
Wordpress
Hint
Use simple PHP variable assignment with exact string values.
2
Set Timezone Variable
Add a variable called $timezone and set it to the exact string 'America/New_York'.
Wordpress
Hint
Use a PHP variable to hold the timezone string exactly as shown.
3
Update Site Title, Tagline, and Timezone Settings
Use the WordPress functions update_option to set the 'blogname' option to $site_title, the 'blogdescription' option to $tagline, and the 'timezone_string' option to $timezone.
Wordpress
Hint
Call update_option three times with the exact option names and variables.
4
Set Date Format in General Settings
Add a line using update_option to set the 'date_format' option to the exact string 'F j, Y' to display dates like 'January 1, 2024'.
Wordpress
Hint
Use update_option with the exact option name and date format string.
Practice
(1/5)
1. Which of the following is NOT typically found in WordPress General Settings?
easy
A. User Roles
B. Site Title
C. Timezone
D. Email Address
Solution
Step 1: Identify common General Settings options
Site Title, Timezone, and Email Address are standard general settings in WordPress.
Step 2: Recognize User Roles location
User Roles are managed under Users, not General Settings.
Final Answer:
User Roles -> Option A
Quick Check:
General Settings exclude User Roles [OK]
Hint: General Settings focus on site identity, not user management [OK]
Common Mistakes:
Confusing User Roles with General Settings
Thinking all settings are in one place
Mixing site info with user permissions
2. Which is the correct way to change the WordPress site URL in the General Settings?
easy
A. Update the 'Admin Email Address' field
B. Change the 'Site Title' field
C. Edit the 'WordPress Address (URL)' field
D. Modify the 'Timezone' dropdown
Solution
Step 1: Understand the purpose of each field
'WordPress Address (URL)' is where the site files are located and controls the site URL.
Step 2: Match the field to the URL change
Changing 'Site Title' or 'Admin Email' does not affect the URL; 'Timezone' is unrelated.
Final Answer:
Edit the 'WordPress Address (URL)' field -> Option C
Quick Check:
URL changes happen in WordPress Address field [OK]
Hint: URL is set in 'WordPress Address (URL)' field [OK]
Common Mistakes:
Changing Site Title to update URL
Editing Email instead of URL
Ignoring the WordPress Address field
3. What will happen if you set the 'Timezone' in General Settings to a city in a different continent?
medium
A. The site time and post timestamps will adjust to that timezone
B. The site URL will change to match the timezone
C. The admin email will be updated automatically
D. Nothing changes until you save permalinks
Solution
Step 1: Understand the role of Timezone setting
Timezone controls how WordPress displays time and dates on posts and pages.
Step 2: Analyze effects of changing timezone
Changing timezone updates displayed times; it does not affect URL or email.
Final Answer:
The site time and post timestamps will adjust to that timezone -> Option A
Quick Check:
Timezone affects displayed time, not URL or email [OK]
Hint: Timezone changes affect displayed times, not URLs [OK]
Common Mistakes:
Thinking URL changes with timezone
Expecting email to update
Believing permalinks must be saved for timezone
4. You tried to update the 'Site Title' in General Settings but the change did not appear on your site. What is the most likely cause?
medium
A. The admin email is not verified
B. You forgot to click the 'Save Changes' button
C. The site URL is incorrect
D. The timezone is set incorrectly
Solution
Step 1: Check the update process for General Settings
Changes only apply after clicking 'Save Changes' at the bottom of the page.
Step 2: Eliminate unrelated causes
Site URL, admin email verification, and timezone do not prevent title updates from showing.
Final Answer:
You forgot to click the 'Save Changes' button -> Option B
Quick Check:
Unsaved changes do not update site [OK]
Hint: Always save changes after editing settings [OK]
Common Mistakes:
Assuming URL affects title display
Ignoring save button
Confusing email verification with title update
5. You want your WordPress site to display dates in the format 'Day-Month-Year' (e.g., 25-12-2024). Which General Settings option should you change to achieve this?
hard
A. Set the 'Timezone' to UTC
B. Update the 'Site Title' field
C. Modify the 'WordPress Address (URL)'
D. Change the 'Date Format' setting
Solution
Step 1: Identify the setting controlling date display
The 'Date Format' option in General Settings controls how dates appear on the site.
Step 2: Understand other options' roles
Site Title, URL, and Timezone do not control date format display.
Final Answer:
Change the 'Date Format' setting -> Option D
Quick Check:
Date format is set in General Settings Date Format [OK]
Hint: Date format is set in 'Date Format' option [OK]