| 开发者 | saumya010 |
|---|---|
| 更新时间 | 2026年9月18日 04:13 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
Q: ... / A: ... prefixed lines (Question: and Answer: also work, in any capitalisation)## Question followed by the answer text1. 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
<details> and <summary> markup. Expanding and collapsing works with JavaScript disabled.<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
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.
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.
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.
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.
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.
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.
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.
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.
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.
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/:
npm install.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.
<details> and <summary> appearing as escaped text rather than as element names in the plugin description.<details>/<summary> rendering with no required front-end JavaScript.