开发者 |
markredballoon
redballoondesignltd |
---|---|
更新时间 | 2017年6月22日 17:15 |
PHP版本: | 4.3 及以上 |
WordPress版本: | 4.8 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
[faqs][/faqs]
Output faqs for a single category, "returns". The first question is open, the rest are collapsed:
[faqs cat="returns" show_question="first"][/faqs]
Shortcode options
FAQ categories to output
Only show faqs from these categories. Add the slugs as a comma separated list. You can find the slug for the categories on the "FAQ Category" page in Wordpress.
cat="[cat-slug]" (default:blank)
What parts should be collapsable
Determines whether the categories and the questions are collapsable.
collapsable="[options]" (default:"questions")
Question to exclude
If there are any faqs that you want to exclude from being output, add their IDs as a comma separated list to this attribute.
exclude="[faq-id]" (default:blank)
Show or hide the category titles
Whether to show or hide the category titles. If this is set to hide and the cat
attribute isn't set then all of the questions and answers will be output. collapsable="both"
or collapsable="categories"
overwrites this option.
title="show/hide" (default: "show)
Initial state of the questions
Change the initial state of the questions when a visitor opens the page with the FAQs on. If the questions aren't collapsable then this attribute does nothing.
show_question="show/close/first" (default: "close")
Initial state of the categories
Change the initial state of the categories when a visitor opens the page with the FAQs on. If the categories aren't collapsable then this attribute does nothing.
show_category="show/close/first" (default: "close")
Type of Icon
Changes the type of icon used for collapsable elements. Effects both the categories and answers. Available options:
icon="[icon-type]" (default: "none")
Secondary icon type
Changes the type of icon used for collapsable answers when collapsable
is set to both. Otherwise does nothing. Available options:
icon_secondary="[icon-type]" (default: "none")
Linking directly to a question
To link directly to a question from another page, add a "targetQuestion" get variable to the end of the url with the question id like so:
http://yoursite.com/faq-page/?targetQuestion=21
When following that link the correct category and question will be open and the user will be moved to the correct location on the page.
Help us improve this plugin
If you have any feedback or require any support using this plugin, get in touch with us by email at support@redballoon.io
/wp-content/plugins/
directory of your site[faqs][/faqs]
shortcode where you want the questions to be outputChange the title of the category on the FAQ Category page in Wordpress your.website/wp-admin/edit-tags.php?taxonomy=faqs_cat&post_type=faqs
If your questions aren't being output you may not have added a category to the questions. Change the title
attribute to hide and leave the cat
attribute blank to show all of the categories including the uncategorised options.
This plugin doesn't support categories with a hierarchy.
A previous version of this plugin is used on a multisite install, but the newer features haven't been tested on multisite.