Skip to main content

Add a Searchable Price List to an Elementor Page with Addon Elements and AI

Your prices, schedule or hours as a table visitors can search and sort, previewed before it goes live.

Difficulty Beginner
Time ~10 min

Prerequisites

A site connected to WPVibe running Elementor 3.27 or newer (free is enough) and Addon Elements for Elementor 1.15.1 or newer (tested on 1.15.1, the free version, with Elementor 4.3.6) on WordPress 6.9 or newer, with an administrator account and the WPVibe plugin up to date. A published page built with Elementor. Your table: the column headers and every row.

The prompt
My WordPress site uses Elementor and the free Addon Elements for Elementor plugin. Add a section with the heading "[section heading, for example Price list]" and a table to my page [page title]. Columns: [column headers]. Rows: [each row, one value per column]. [Search box: yes or no.] [Sortable columns: yes or no.] Put it [before the section that starts with X, or at the end of the page].

1. Run discover_abilities with category addon-elements. If eae/list-widgets and eae/get-widget-schema are not both listed, stop and tell me to install and activate Elementor and the free Addon Elements for Elementor plugin (1.15.1 or newer): its AI tools load only while Elementor is active. Run site_info and check its features include content_edit; if not, stop and tell me to update the WPVibe plugin. Run eae/list-widgets and check eae-data-table is in the list; if it isn't, stop and tell me to switch it on in wp-admin under Addon Elements, then ask again.
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, PAGE_URL its link, and SITE_URL my site's address. Read it with rest_api GET /wp/v2/pages/PAGE_ID with context edit, fields id,modified,meta and max_length 400000. If meta._elementor_edit_mode is not builder, stop and tell me the page isn't built with Elementor. If the read was cut, stop before changing anything and tell me the page is too large for this recipe. MODIFIED is its modified date. meta._elementor_data is the layout, a JSON array: note the id of each top-level element in order, with the first heading or text inside it.
3. Find where the section goes. Before a section: NEXT_ID is the id of the top-level element whose heading or text starts with what I named; if you can't tell which one I meant, list the top-level elements with their first heading and ask. At the end of the page: TAIL is the last 40 characters of meta._elementor_data exactly as stored (after decoding the REST response, so backslashes in the value stay as they are).
4. Run eae/get-widget-schema with input widget eae-data-table, and set run_ability's own max_length to 100000, not in the input (some widgets' settings run past WPVibe's default length). If WPVibe still cuts the result, read it in parts: call it again with offset 100, then 200, then 300 and so on, until the offset reaches total_controls (given near the top of the first reply), keeping the keys from every part; parts may overlap; if it says truncated true, call it again with offset next_offset. Read every part before you build. Use only the keys it lists, plus the ones named here. Any key you leave out falls back to the widget's demo content (Atomic Number, Element Name, Chemical Symbol, Hydrogen, Column Name, Sample # 1, Search...), so set every text I gave you. Give each new element an id of 8 random lowercase hex characters that is not already in the layout, and each repeater row its own _id of 7. The section is one container (container_type flex, flex_direction column, content_width boxed) with id NEW_ID, holding a heading widget (title [section heading], header_size h2) and one eae-data-table widget. The widget builds rows from markers. header_data is one row with header_row_column_type row, then one row per column header with header_row_column_type column and head_column_name. body_row_data is, for each of my rows in order, one row with eae_row_column_type row followed by one row per cell with eae_row_column_type column, body_text_type text and body_column_name. For a search box, eae_table_search yes and eae_table_search_placeholder Search the list (or my wording); for sortable columns, eae_sortable yes.
5. Save the section on a new draft page first: rest_api_write POST /wpvibe/v1/elementor/save-page with title the page title followed by (AI preview), status draft, page_template elementor_header_footer, and data an array holding only the section. PREVIEW_ID is the id it returns. Give me the preview link, SITE_URL/?page_id=PREVIEW_ID&preview=true (it opens only while I'm logged in), describe the section, and wait for my yes. Nothing on my live page has changed yet. If I say no, ask what to change, make it on the same preview page (save-page again with id PREVIEW_ID and the whole new section), and show me again; if I want none of it, skip to the last step.
6. On my yes, read the page again as in step 2; if its modified date is no longer MODIFIED or its top-level ids are not the ones from step 2, stop and tell me someone edited it. Never resend or retype the page's whole layout: add the section with one small edit, rest_api_write POST /wpvibe/v1/content/edit with target_type meta, post_id PAGE_ID and meta_key _elementor_data, the section written as one compact JSON object. Before a section: old_content is {"id":"NEXT_ID" (with the brace and quotes in front), new_content is the section, a comma, then that same old_content. At the end of the page: run POST /wpvibe/v1/content/search with the same target and pattern TAIL. If it matches exactly once and its snippet runs to the end of the value (snippet_starts_at_char plus the snippet's length is line_length, or line_length is absent because the snippet is the whole value, and it ends with the final closing square bracket), take the snippet's last 60 to 120 characters, copied exactly, as old_content, and as new_content the same text with a comma and the section added just before that final bracket. If not, try once more with the last 20 characters; if that fails too, stop and ask me which section to put it before. content/edit changes only text that matches exactly once and refuses an edit that would leave the layout's JSON broken; if it refuses, tell me what it said. Never use replace_all. Keep the old_content and new_content you used: swapping them is the undo.
7. Read the page again as in step 2 and check every top-level id from step 2 is still there in the same order, with NEW_ID where I wanted it. If not, undo the edit (content/edit with old_content and new_content swapped) and tell me what you saw.
8. Fetch the live page with get_page_html, selector .elementor-element-NEW_ID, and check, in the section's visible text (outside the HTML tags and attributes), that every row's first value is there and none of the demo text (Atomic Number, Element Name, Chemical Symbol, Hydrogen, Column Name, Sample # 1, Search...) is, except words I gave you myself. If the selector matches nothing, undo the edit and tell me. If something is missing or demo text is there, tell me what and offer the undo. That fetch skips page caches, so then run run_wp_cli cache purge --url=PAGE_URL so visitors get the new version too, and tell me what it reported; if my host caches pages, I purge it there. Also count the table's body rows: there must be as many as I gave you.
9. Ask whether to trash the preview page. Only on my yes, check with rest_api GET /wp/v2/pages/PREVIEW_ID with fields id,status,title that it is a draft whose title ends (AI preview), then run rest_api_write DELETE /wp/v2/pages/PREVIEW_ID (it goes to the trash; WPVibe doesn't ask for approval on this one, so ask me yourself). Tell me how to undo the change: content/edit on the page with the old_content and new_content you used, swapped. Tell me that if this page was open in the Elementor editor during this, I should reload the editor before saving there, or its older copy replaces the new section. List what you changed so I can spot-check it, and give me the page link and its Elementor edit link, SITE_URL/wp-admin/post.php?post=PAGE_ID&action=elementor.
Already connected?

Skip pasting the full prompt. Drop this into your AI on a site that already has WPVibe:

Run the “Add a Searchable Price List to an Elementor Page with Addon Elements and AI” recipe from the WPVibe cookbook on my connected site.

A price list, a class schedule or a table of opening hours belongs on the page as a real table, not an image nobody can search or update. The free Addon Elements Data Table builds one, one cell at a time, with each row started by a marker that is easy to get wrong.

The AI builds the table from your list, with a search box and sortable columns if you want them, and saves it on a draft page for you to preview. Your live page changes only on your yes, with one small edit the AI keeps a note of, and it checks the page afterwards for every row.

Paste your list with a header for each column. The AI adds the section with one small edit and keeps a note of it, so taking it out again is one step; if it can’t find the end of your page’s layout, it asks which section to put the table before. For plans side by side with ticks and crosses, see Compare Plans Side by Side.

Outcome

A table on your page with your columns and rows, with a search box and sortable columns if you asked for them.