Bird
Raised Fist0
Wordpressframework~10 mins

General settings in Wordpress - Interactive Code Practice

Choose your learning style10 modes available

Start learning this pattern below

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
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to set the site title in WordPress.

Wordpress
update_option('blogname', [1]);
Drag options to blanks, or click blank then click option'
Ablogname
Bsite_title
Cget_bloginfo()
D'My New Site'
Attempts:
3 left
💡 Hint
Common Mistakes
Using a variable name instead of a string.
Forgetting quotes around the title.
2fill in blank
medium

Complete the code to retrieve the WordPress timezone setting.

Wordpress
$timezone = get_option([1]);
Drag options to blanks, or click blank then click option'
A'gmt_offset'
B'timezone_string'
C'time_format'
D'date_format'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'date_format' or 'time_format' instead of timezone option.
Forgetting quotes around the option name.
3fill in blank
hard

Fix the error in the code to update the admin email in WordPress.

Wordpress
update_option('admin_email', [1]);
Drag options to blanks, or click blank then click option'
A'admin@example.com'
BadminEmail
Cget_admin_email()
Dadmin_email
Attempts:
3 left
💡 Hint
Common Mistakes
Passing a variable without quotes.
Using a function that does not exist.
4fill in blank
hard

Fill both blanks to get and update the WordPress site description.

Wordpress
$desc = get_option([1]);
update_option([2], 'New description here');
Drag options to blanks, or click blank then click option'
A'blogdescription'
B'site_description'
C'description'
D'blogname'
Attempts:
3 left
💡 Hint
Common Mistakes
Using different option names for get and update.
Using 'description' or 'site_description' which are incorrect.
5fill in blank
hard

Fill all three blanks to create a custom option and retrieve it in WordPress.

Wordpress
add_option([1], [2]);
$value = get_option([3]);
Drag options to blanks, or click blank then click option'
A'custom_setting'
B'custom value'
D'default_value'
Attempts:
3 left
💡 Hint
Common Mistakes
Using different option names for add and get.
Passing a variable instead of a string value.

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

  1. Step 1: Identify common General Settings options

    Site Title, Timezone, and Email Address are standard general settings in WordPress.
  2. Step 2: Recognize User Roles location

    User Roles are managed under Users, not General Settings.
  3. Final Answer:

    User Roles -> Option A
  4. 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

  1. Step 1: Understand the purpose of each field

    'WordPress Address (URL)' is where the site files are located and controls the site URL.
  2. Step 2: Match the field to the URL change

    Changing 'Site Title' or 'Admin Email' does not affect the URL; 'Timezone' is unrelated.
  3. Final Answer:

    Edit the 'WordPress Address (URL)' field -> Option C
  4. 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

  1. Step 1: Understand the role of Timezone setting

    Timezone controls how WordPress displays time and dates on posts and pages.
  2. Step 2: Analyze effects of changing timezone

    Changing timezone updates displayed times; it does not affect URL or email.
  3. Final Answer:

    The site time and post timestamps will adjust to that timezone -> Option A
  4. 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

  1. Step 1: Check the update process for General Settings

    Changes only apply after clicking 'Save Changes' at the bottom of the page.
  2. Step 2: Eliminate unrelated causes

    Site URL, admin email verification, and timezone do not prevent title updates from showing.
  3. Final Answer:

    You forgot to click the 'Save Changes' button -> Option B
  4. 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

  1. Step 1: Identify the setting controlling date display

    The 'Date Format' option in General Settings controls how dates appear on the site.
  2. Step 2: Understand other options' roles

    Site Title, URL, and Timezone do not control date format display.
  3. Final Answer:

    Change the 'Date Format' setting -> Option D
  4. Quick Check:

    Date format is set in General Settings Date Format [OK]
Hint: Date format is set in 'Date Format' option [OK]
Common Mistakes:
  • Changing Site Title to affect date
  • Confusing URL with date format
  • Thinking timezone changes date format