0
0
Wordpressframework~10 mins

Why proper configuration matters in Wordpress - Test Your Understanding

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to set the WordPress site URL correctly.

Wordpress
define('WP_HOME', '[1]');
Drag options to blanks, or click blank then click option'
A'index.php'
B'wp-admin'
C'wp-config.php'
D'https://example.com'
Attempts:
3 left
💡 Hint
Common Mistakes
Using file names instead of the site URL.
Leaving the URL empty or incorrect.
2fill in blank
medium

Complete the code to set the WordPress database name in the configuration.

Wordpress
define('DB_NAME', '[1]');
Drag options to blanks, or click blank then click option'
A'wordpress_db'
B'wp-content'
C'wp-config.php'
D'localhost'
Attempts:
3 left
💡 Hint
Common Mistakes
Using folder names like 'wp-content' instead of the database name.
Using server names like 'localhost' here.
3fill in blank
hard

Fix the error in the code to properly set the WordPress debug mode.

Wordpress
define('WP_DEBUG', [1]);
Drag options to blanks, or click blank then click option'
A'false'
B'true'
Ctrue
Dfalse
Attempts:
3 left
💡 Hint
Common Mistakes
Putting quotes around true or false.
Using strings instead of booleans.
4fill in blank
hard

Fill both blanks to correctly set the WordPress database user and password.

Wordpress
define('DB_USER', '[1]');
define('DB_PASSWORD', '[2]');
Drag options to blanks, or click blank then click option'
A'admin_user'
B'admin_pass123'
C'root'
D'password'
Attempts:
3 left
💡 Hint
Common Mistakes
Using default or empty passwords.
Mixing up user and password values.
5fill in blank
hard

Fill all three blanks to set the WordPress site URL, content directory, and enable debugging.

Wordpress
define('WP_HOME', '[1]');
define('WP_CONTENT_DIR', '[2]');
define('WP_DEBUG', [3]);
Drag options to blanks, or click blank then click option'
A'https://mywebsite.com'
B'/var/www/html/wp-content'
Ctrue
Dfalse
Attempts:
3 left
💡 Hint
Common Mistakes
Using relative paths for content directory.
Putting quotes around boolean values.
Incorrect site URL format.