Challenge - 5 Problems
Custom Content Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate1:30remaining
Why use custom content types in WordPress?
Which of the following best explains why custom content types are important for businesses using WordPress?
Attempts:
2 left
💡 Hint
Think about how different types of information need different ways to be stored and shown.
✗ Incorrect
Custom content types let businesses separate content like products, events, or testimonials. This helps keep things organized and makes the site easier to manage and customize.
❓ component_behavior
intermediate1:30remaining
Behavior of a custom post type in WordPress
If a business creates a custom post type called 'Portfolio', what will happen when they add new items under this type?
Attempts:
2 left
💡 Hint
Think about how custom post types help keep content distinct and customizable.
✗ Incorrect
Custom post types store content separately from regular posts, allowing businesses to add unique fields and display them differently on the site.
📝 Syntax
advanced2:00remaining
Registering a custom post type with correct syntax
Which option correctly registers a custom post type 'product' in WordPress?
Attempts:
2 left
💡 Hint
Remember that the second argument must be an array with commas separating items.
✗ Incorrect
The function register_post_type requires the second argument to be an array with key-value pairs separated by commas.
❓ state_output
advanced1:30remaining
Output behavior of a custom post type archive
What will a visitor see when visiting the archive page of a custom post type 'event' if no custom template exists?
Attempts:
2 left
💡 Hint
Think about how WordPress falls back to default templates when custom ones are missing.
✗ Incorrect
WordPress uses the default archive template to show custom post type archives if no specific template is found.
🔧 Debug
expert2:30remaining
Debugging a custom post type not showing in admin menu
A developer registers a custom post type 'book' but it does not appear in the WordPress admin menu. Which option explains the most likely cause?
Attempts:
2 left
💡 Hint
Check the arguments controlling visibility in the admin area.
✗ Incorrect
If 'show_in_menu' is false or missing, the custom post type won't appear in the admin menu even if registered.