Add an FAQ Accordion to an Elementor Page with The Plus Addons and AI
Your questions and answers as an accordion, built on a draft copy first and added to your page after your yes.
Prerequisites
A site connected to WPVibe running Elementor (free is enough) and The Plus Addons for Elementor 6.6 or newer (tested on 6.6.1, free) on WordPress 6.9 or newer, with an administrator account and The Plus Addons' AI Abilities on (Abilities Access in its dashboard; on by default for new installs).
My WordPress site uses Elementor and the free The Plus Addons for Elementor plugin. Add an FAQ section to my page [page title] with the heading "[heading, for example Questions about subscriptions]" and these questions and answers: [each question with its answer]. Put it [before the section that starts with X, or at the end of the page].
1. Run discover_abilities with category tpae. If no tpae abilities are listed, stop and tell me to install the free The Plus Addons for Elementor plugin (6.6 or newer) with Elementor, open wp-admin once, and turn on AI Abilities under Abilities Access in The Plus Addons dashboard (a site that had The Plus before its AI abilities arrived has it off). If tpae/duplicate-page or tpae/save-as-template is not listed, stop and tell me to update The Plus Addons to 6.6 or newer.
2. Find my page with rest_api GET /wp/v2/pages with search set to [page title], status publish and _fields id,title,link. If several match, list them and ask which one; if none match, stop and tell me. PAGE_ID is its id and PAGE_URL its link. Run tpae/elementor-get-page-structure on PAGE_ID (if the result was cut, run it again with max_length 100000). If its structure is empty, stop and tell me the page isn't built with Elementor. Note the ids of its top-level elements, in order, and the headings and text shown in each. Run tpae/get-page-structure on PAGE_ID and note element_count as ELEMENTS_BEFORE. If either read is still cut at max_length 100000, stop before changing anything and tell me the page is too large for this recipe.
3. Run tpae/duplicate-page with post_id PAGE_ID, new_title the page title followed by (AI draft), and status draft. COPY_ID is the new_post_id it returns and COPY_URL the url. Make every change below on COPY_ID only: my live page stays as it is until I say yes.
4. Find POSITION, counting the top-level elements from 0: the index of the top-level element whose headings or text start with what I named, or -1 for the end of the page. If you can't tell which one I meant, list the top-level elements with their first heading and ask. Tell me which one it goes before. Run tpae/add-container on COPY_ID with position POSITION and settings flex_direction column. SECTION_ID is the element_id it returns.
5. Run tpae/tpae-heading-title with post_id COPY_ID, parent_id SECTION_ID, title my heading, sub_title "" and title_s "" (without the two empty values the widget shows its demo Title and Sub Title next to my heading). Then run tpae/tpae-accordion with post_id COPY_ID, parent_id SECTION_ID, title_html_tag h3 and tabs with one row per question, in my order, as {"tab_title": "the question", "tab_content": "the answer"}. If a tpae/tpae- ability returns widget_missing, stop and tell me to turn on that widget in The Plus Addons dashboard (Widgets), then ask again. Tell me the half-built draft copy is still there and ask whether to trash it.
6. Run tpae/get-element-settings on the accordion and check every question and answer is there, in order.
7. Run tpae/get-page-structure on COPY_ID: element_count must be ELEMENTS_BEFORE plus the elements you added (the section, its containers and its widgets). If not, Elementor dropped something when it saved the copy: stop, tell me, and leave my live page alone. Give me the copy's preview link, COPY_URL followed by &preview=true (it opens only while I'm logged in), describe the section, and wait for my yes. If I say no, ask whether to trash the copy, and only on my yes run tpae/set-post-status with COPY_ID and status trash.
8. On my yes, run tpae/save-as-template with post_id COPY_ID, element_id SECTION_ID, title the page title followed by AI section, and template_type container. TEMPLATE_ID is the template_id it returns. Run tpae/apply-template with post_id PAGE_ID, template_id TEMPLATE_ID and position POSITION: it adds the section with new ids. Then run tpae/get-page-structure on PAGE_ID (with max_length 100000 if the result was cut): NEW_ID is the one top-level element that wasn't in the list from step 2. Check it sits where I asked, every top-level element from step 2 is still there in the same order, and element_count is ELEMENTS_BEFORE plus the elements_added apply-template reported. Run tpae/set-post-status with TEMPLATE_ID and status trash: the template only carried the section across. If a check failed, tell me what you see, give me the undo below and point me to the page's Elementor revisions, and stop.
9. Fetch the live page with get_page_html, selector .elementor-element-NEW_ID, and check my heading, word for word with nothing after it, and every question is in it and none of the widget's demo text (Accordion #1, Lorem ipsum, Sub Title, Title) is, except words I gave you myself. If the selector matched nothing, the check failed: tell me. That fetch skips page caches, so then run run_wp_cli cache purge --url=PAGE_URL so visitors get the new version, and tell me what it reported; if my host caches pages, I purge it there.
10. Ask whether to trash the draft copy. Only on my yes, check with rest_api GET /wp/v2/pages/COPY_ID with _fields id,status,title that it is a draft whose title ends (AI draft), then run tpae/set-post-status with COPY_ID and status trash (WPVibe doesn't ask for approval on this one, so ask me yourself). Tell me how to undo the change: run tpae/remove-element on PAGE_ID with element_id NEW_ID, which WPVibe asks me to approve. List what you changed so I can spot-check it. Ask me to open the live page and click a question to check it opens. Give me the page link.
Skip pasting the full prompt. Drop this into your AI on a site that already has WPVibe:
Run the “Add an FAQ Accordion to an Elementor Page with The Plus Addons and AI” recipe from the WPVibe cookbook on my connected site.
The same five questions arrive by email every week: can I skip a month, when do you ship, do you deliver to me. The answers belong on the page people are reading, but an FAQ section is one more thing to build and style.
The AI copies your page to a draft and adds a heading and The Plus Addons’ Accordion there, one row per question, the first one open. You check the preview; after your yes it puts the section into the live page, checks nothing else moved, and looks at the live page for every question.
List your questions and answers in the prompt, in the order you want them. Answers are plain text. The accordion’s FAQ schema option is part of The Plus Addons Pro, so this recipe doesn’t add it. To add an FAQ section with schema in the block editor instead, see this recipe.
Outcome
An FAQ section with your questions on the live page, the draft copy you approved, and the one step that removes it again.