FAQs Block
The FAQs Block is a component designed to display a list of frequently asked questions and their corresponding answers in an accordion-style format. This allows for a clean and organized presentation of information, improving user experience by allowing users to expand and collapse answers as needed.
Example on the current website
- Example: View live example
- Preview with image:

- Editor preview:

Content Editor Fields
- Description: A list of faqs to be displayed in the block.
- Usage: This is populated automatically by selecting posts from the "FAQs" custom post type in WordPress. Each faq post will represent one accordion item.
- FAQ Title:
- Description: The question part of the FAQ.
- Usage: Enter the question that users frequently ask.
- Requirement: Required.
- FAQ Content:
- Description: The answer to the question.
- Usage: Enter the detailed answer to the question.
- Requirement: Required.
FAQs
- Description: A list of individual FAQ items, each containing a question (title) and its answer (content).
- Usage: Add or remove FAQ items to build the list of questions and answers.
- Requirement: At least one FAQ item is required for the block to render.
Example Usage:
Steps:
- Create FAQs Posts: Create posts in the "FAQs" custom post type.
- Add FAQ items: - Click the "Add New FAQ" button to create a new FAQ item. - Enter the question in the "FAQ Title" field. - Enter the answer in the "FAQ Content" field. - Repeat this process for each FAQ you want to include.
- Add the block: Insert the FAQs Block into your page or post.
- Save the Block: Your FAQs block is now ready for display!
Result:
When properly configured, the FAQs Block will render an accordion-style list of questions and answers on your webpage. Each question will be displayed as a clickable header. Clicking on a question will expand the section to reveal the answer, and clicking again will collapse it.
Conclusion:
The FAQs Block is a valuable tool for providing users with quick access to important information. Its accordion-style layout and ease of use make it a great addition to any website that needs to address common questions.