Challenge - 5 Problems
Permalink Pro
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ component_behavior
intermediate1:30remaining
How does WordPress handle a custom permalink structure with %postname%?
If you set your permalink structure to
/%postname%/, what will be the URL for a post titled "Hello World"?Attempts:
2 left
💡 Hint
Think about how %postname% replaces the slug in the URL.
✗ Incorrect
Using /%postname%/ creates URLs with just the post slug after the domain, like https://example.com/hello-world/.
📝 Syntax
intermediate1:30remaining
Which permalink structure is valid for including year, month, and post ID?
Choose the correct permalink structure to show year, month, and post ID in the URL.
Attempts:
2 left
💡 Hint
WordPress uses specific tags like %year%, %monthnum%, and %post_id%.
✗ Incorrect
The correct tags are %year%, %monthnum%, and %post_id%. Other options use invalid tags.
❓ state_output
advanced2:00remaining
What is the effect of changing permalink structure on existing links?
After changing the permalink structure from
/%year%/%postname%/ to /%postname%/, what happens to old URLs?Attempts:
2 left
💡 Hint
Think about how WordPress handles URL changes without redirects.
✗ Incorrect
Changing permalink structure breaks old URLs unless you create redirects. Otherwise, users get 404 errors.
🔧 Debug
advanced2:00remaining
Why does WordPress show a 404 error after setting a custom permalink?
You set a custom permalink structure but all posts show 404 errors. What is the most likely cause?
Attempts:
2 left
💡 Hint
Permalinks rely on server rewrite rules.
✗ Incorrect
WordPress uses the .htaccess file to rewrite URLs. If it is missing or not writable, permalinks break and cause 404 errors.
🧠 Conceptual
expert2:30remaining
How does WordPress prioritize permalink matching when multiple structures overlap?
If you have two custom post types with similar permalink structures, how does WordPress decide which content to show?
Attempts:
2 left
💡 Hint
Rewrite rules are checked in order of registration.
✗ Incorrect
WordPress processes rewrite rules in the order they were added. The first matching rule determines the content shown.