Challenge - 5 Problems
WordPress Content Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
What is the main difference between a WordPress post and a page?
In WordPress, posts and pages are two types of content. Which statement best describes their main difference?
Attempts:
2 left
💡 Hint
Think about how blog articles and static information are usually organized.
✗ Incorrect
Posts are designed for timely content like blog entries and appear in reverse chronological order. Pages are for static content like About or Contact and do not have a date.
❓ component_behavior
intermediate2:00remaining
How does WordPress display posts and pages differently on the site?
Which behavior correctly describes how WordPress shows posts and pages on the website?
Attempts:
2 left
💡 Hint
Consider where you usually find blog articles versus static site sections.
✗ Incorrect
Posts show up in blog lists, archives, and feeds. Pages are standalone and usually linked from menus or other pages.
📝 Syntax
advanced2:00remaining
Which WordPress template file is used to display a single post?
In a WordPress theme, which template file is used by default to display a single blog post?
Attempts:
2 left
💡 Hint
Think about the naming convention for single post templates.
✗ Incorrect
The single.php template is used to display individual posts. page.php is for pages, archive.php for lists, and index.php is the fallback.
🔧 Debug
advanced2:00remaining
Why are comments not showing on a WordPress page?
A user notices that comments appear on posts but not on pages. What is the most likely reason?
Attempts:
2 left
💡 Hint
Think about how themes control comment display.
✗ Incorrect
By default, WordPress supports comments on both posts and pages, but the theme must include the comments template in the page template to show them.
❓ state_output
expert3:00remaining
What is the output of this WordPress loop code snippet?
Given this WordPress loop code inside a theme file, what will it output when viewing a page?
Wordpress
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <h1><?php the_title(); ?></h1> <?php the_content(); ?> <?php endwhile; endif; ?>
Attempts:
2 left
💡 Hint
Remember that WordPress uses the loop for both posts and pages.
✗ Incorrect
The loop works for any content type. When viewing a page, it outputs that page's title and content.