This plugin adds question and answer functionality to your WordPress website.
It includes what you need to handling FAQs including a custom post type, taxonomy, and shortcode. Using the shortcode [faq] you can display all of the FAQs or just the ones you want via term (for grouping).
Often I like to show hints and hide away the answers. This plugin gives you an extra shortcode [qa]. It can be used for hints or hiding any content that you'd like.
- Install the Fulcrum, the central custom repository plugin for WordPress.
- Then you can install this plugin.
Installation from GitHub is as simple as cloning the repo onto your local machine. To clone the repo, do the following:
- Using PhpStorm, open your project and navigate to
wp-content/plugins/. (Or open terminal and navigate there). - Then type:
git clone https://github.com/KnowTheCode/FAQ.git.
Everything is configurable using the configuration files found in the config folder. The font icons use the chevrons from Font Awesome. To change to a different icon, do the following:
- Go to
fulcrum-faq\config\shortcodes\faq.php. - Change the
open_iconandclose_iconvalues. - Repeat for the
qa.phpfile. - Open the
fulcrum-faq\config\asset\fulcrumFAQ.phpfile. - Change the
openandclosevalues in thelocalizearray for both the faq and qa. These icon classes are used by the JavaScript script to locate the icons and change them when clicking.
All feedback, bug reports, and pull requests are welcome.