Linux 软件免费装
Banner图

Ordessa – FAQ & Accordion Block with Bulk Add

开发者 saumya010
更新时间 2026年9月18日 04:13
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

faq gutenberg blocks accordion accordion block faq block

下载

0.1.1 0.1.2

详情介绍:

Ordessa is an FAQ and accordion block for the WordPress block editor, built around one idea: your whole FAQ lives in a single block. Most FAQ plugins and accordion blocks make you insert a new block for every question. Adding the twentieth question means twenty separate blocks to insert, style and keep consistent — and reordering them means dragging twenty blocks around. Ordessa takes the other approach: one block holds every question. Add, reorder, duplicate and delete questions inside it, or paste an entire FAQ in at once and have it split into questions and answers automatically. Add 20 questions without inserting 20 blocks Bulk paste understands the formats you already have Paste your text and the block detects the format automatically: Numbered and bulleted lists are handled as well, so a 1. or a - at the start of a question does not end up inside the question text. You see a preview of what was parsed — which format it recognised, how many questions, and the first few pairs — before anything is added. Then choose to append to the existing questions or replace them. Either way it is a single undo step. The preview is there so you can check the pairing before you commit. When the block spots that your text is not one of the formats above — leftover columns from a spreadsheet, comma-separated values, or a run of alternating lines that does not pair up evenly — it says so and imports nothing rather than importing it wrongly. It cannot detect every unusual layout, so give the preview a quick look before adding. Built to stay out of the way Accessibility Questions are real <summary> elements inside a heading of your chosen level. They are reachable with Tab, toggled with Enter or Space, and show a visible focus outline. The open and closed state is conveyed by the browser natively rather than being simulated. Who this is for What this plugin does not do Being straightforward about this saves everyone time:

安装:

  1. Go to Plugins > Add New in your WordPress admin.
  2. Search for "Ordessa".
  3. Click Install Now, then Activate.
  4. Edit any post or page, add the FAQ & Accordion (Bulk Add) block, and start typing — or open the Bulk add panel and paste an existing FAQ.
You can also upload the plugin ZIP under Plugins > Add New > Upload Plugin.

屏幕截图:

  • Bulk add: paste an FAQ and preview what was parsed before committing.
  • The finished accordion on the front end.
  • Block settings — heading level, first item open, and one-at-a-time options.

升级注意事项:

0.1.2 Listing and documentation only — corrects escaped text in the description and expands it. The block itself is unchanged. 0.1.1 Fixes bulk paste silently mis-matching questions and answers for spreadsheet columns, comma-separated values and unevenly paired alternating lines. Adds spreadsheet paste and list-marker handling. 0.1.0 Initial release.

常见问题:

Do I need a separate block for each question?

No — that is the whole point of this plugin. One block holds all of your questions. Use the "Add question" button inside the block to add more.

Can I paste in an FAQ I already wrote?

Yes. Open the Bulk add panel, paste the text, and it will be parsed into separate questions and answers. You will see how many were found and a preview of the first few before you commit, and you can choose to add them to what is already there or replace it.

What if my pasted text is in an unusual format?

The block recognises Q:/A: prefixes, alternating lines, Markdown-style headings, and two columns copied straight out of a spreadsheet. Numbered and bulleted lists are understood too — the 1. or - is not included in the question text. If a line cannot be interpreted, nothing is imported at all and you are told which line caused the problem — an import is never half-applied, so you can fix the line and paste again. Some layouts it does not model — a Markdown table, for instance, or pairs written one-per-line and joined by a comma or a dash — can still be read the wrong way round without a warning. That is what the preview is for: it shows you the first few pairs as the block understood them, so check those before you commit.

Can I paste my FAQ straight from a spreadsheet?

Yes. Copy the two columns — questions in the first, answers in the second — and paste them in. The preview tells you it recognised a spreadsheet and how many pairs it found before anything is added. If a row is missing its question or its answer, or the columns do not line up, it reports the row and imports nothing rather than importing the pairs wrongly.

Can I show the same FAQ on more than one page?

Yes, using WordPress's own synced patterns. Select the block, create a pattern from it and turn on syncing, then place that pattern on any page that needs it. Editing it in one place updates every page it appears on.

Does the accordion work without JavaScript?

Yes. It uses the browser's own <details> element, so opening and closing works with JavaScript turned off. The only feature that uses JavaScript is the optional "allow only one open at a time" setting, and even then every question still opens and closes normally if that script does not load.

Can I put images, buttons or other blocks inside an answer?

Not in this version. Answers are rich text — bold, italics, links and lists. Keeping answers as text is what makes pasting a whole FAQ in at once and reordering questions fast, which is the problem this block exists to solve.

Does this add FAQ schema or structured data?

No. Google restricted FAQ rich results to government and health sites in 2023, so for almost every site the search benefit people associate with FAQ schema is no longer available. Rather than imply a benefit you would not get, this plugin leaves it out.

Will it match my theme?

It inherits your theme's fonts and colours by default, and supports the standard WordPress colour, typography, spacing and border controls if you want to adjust it.

Where is the source code, and how do I build it?

The complete, unminified source is included in this plugin under src/. The files in build/ are generated from it — nothing is obfuscated, and no third-party libraries are bundled. The build uses @wordpress/scripts, the official WordPress build tooling, configured in the included package.json. To regenerate build/ from src/:

  1. Install Node.js (18 or newer).
  2. From the plugin directory, run npm install.
  3. Run npm run build.
npm run start builds in watch mode for development. npm run lint:js and npm run lint:css run the WordPress coding-standards linters.

更新日志:

0.1.2 0.1.1 0.1.0