Untitled Session
2026-05-31 02:15 UTC · 17 messages · cli
You2026-05-31 02:15 UTC
Add 5 custom nav links to the Main Menu on testing.jaimisaunders.com using wp-cli
Donna2026-05-31 02:15 UTC
I'll add all 5 custom links to the Main Menu using wp-cli inside the Docker container.
Tool2026-05-31 02:15 UTC
{"output": "Error: YIKES! It looks like you're running this as root. You probably meant to run this as the user that your WordPress installation exists under.\n\nIf you REALLY mean to run this as root, we won't stop you, but just bear in mind that any code on this site will then have full control of...
Tool2026-05-31 02:15 UTC
{"output": "Error: YIKES! It looks like you're running this as root. You probably meant to run this as the user that your WordPress installation exists under.\n\nIf you REALLY mean to run this as root, we won't stop you, but just bear in mind that any code on this site will then have full control of...
Tool2026-05-31 02:15 UTC
{"output": "Error: YIKES! It looks like you're running this as root. You probably meant to run this as the user that your WordPress installation exists under.\n\nIf you REALLY mean to run this as root, we won't stop you, but just bear in mind that any code on this site will then have full control of...
Tool2026-05-31 02:15 UTC
{"output": "Error: YIKES! It looks like you're running this as root. You probably meant to run this as the user that your WordPress installation exists under.\n\nIf you REALLY mean to run this as root, we won't stop you, but just bear in mind that any code on this site will then have full control of...
Tool2026-05-31 02:15 UTC
{"output": "Error: YIKES! It looks like you're running this as root. You probably meant to run this as the user that your WordPress installation exists under.\n\nIf you REALLY mean to run this as root, we won't stop you, but just bear in mind that any code on this site will then have full control of...
Donna2026-05-31 02:15 UTC
Need to add `--allow-root` flag. Let me re-run all 5 commands.
Tool2026-05-31 02:15 UTC
{"output": "59", "exit_code": 0, "error": null}
Tool2026-05-31 02:15 UTC
{"output": "60", "exit_code": 0, "error": null}
Tool2026-05-31 02:15 UTC
{"output": "61", "exit_code": 0, "error": null}
Tool2026-05-31 02:15 UTC
{"output": "62", "exit_code": 0, "error": null}
Tool2026-05-31 02:15 UTC
{"output": "63", "exit_code": 0, "error": null}
Donna2026-05-31 02:15 UTC
All 5 items added successfully (menu item IDs 59–63). Now let me verify the menu has 5 items and is still assigned to the `primary` location.
Tool2026-05-31 02:15 UTC
{"output": "term_id\tname\tlocations\tcount\n23\tMain Menu\tprimary\t5", "exit_code": 0, "error": null}
Tool2026-05-31 02:15 UTC
{"output": "db_id\ttitle\turl\n59\tCommunity\thttps://testing.jaimisaunders.com/community/\n60\tStudios\thttps://testing.jaimisaunders.com/studio/\n61\tMembers\thttps://testing.jaimisaunders.com/members/\n62\tProfe Radio\thttps://testing.jaimisaunders.com/profe-radio/\n63\tProfeTV\thttps://testing.j...
Donna2026-05-31 02:15 UTC
## Summary
**What I did:**
Executed 5 `wp menu item add-custom` commands inside the `testing-app-1` Docker container to add custom navigation links to the "Main Menu" (term_id 23).
**Results:**
| # | Title | URL | Menu Item ID |
|---|-------|-----|-------------|
| 1 | Community | https://testing.jaimisaunders.com/community/ | 59 |
| 2 | Studios | https://testing.jaimisaunders.com/studio/ | 60 |
| 3 | Members | https://testing.jaimisaunders.com/members/ | 61 |
| 4 | Profe Radio | https://testing.jaimisaunders.com/profe-radio/ | 62 |
| 5 | ProfeTV | https://testing.jaimisaunders.com/profetv/ | 63 |
**Verification:**
- Menu **count** = 5 items ✅
- Menu assigned to **'primary'** location ✅
- All 5 titles and URLs match the requested values ✅
**Issues encountered:** None after adding `--allow-root` flag (required since commands run as root inside the container).