开发者 |
anybodesign
bizingreclaire thierrypigot sebastienserre |
---|---|
更新时间 | 2020年4月22日 15:37 |
PHP版本: | 4.0 及以上 |
WordPress版本: | 5.4 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
[sliding_faq heading='h3']
.
You can create different topics for your FAQ using the custom taxonomy FAQ Topics, this way you can display multiple FAQ. To do so, add the topic attribute to the shortcode with the name of your topic(s), for example: [sliding_faq topic='Accessibility, SEO']
.
You can of course use both attributes: [sliding_faq heading='h3' topic='Accessibility']
.
Featured images are now supported and the default size is 'thumbnail'. You can choose other dimensions size with the 'size' attribute: [sliding_faq size='large']
. The attribute will support thumbnail, medium, large and full or any custom size. (Note that you'll have to customize the CSS if you want to display a large image.)
Translations
You can translate AD Sliding FAQ on translate.wordpress.org.
To-Do
To display your FAQ, just add the shortcode [sliding_faq]
in a post or a page! Use the heading attribute to select the heading level, for example: [sliding_faq heading='h3']
. Use the topic attribute to display multiple FAQ, for example: [sliding_faq topic='Accessibility, SEO']
.
Sure, you can use the function <?php sliding_faq(); ?>
in your theme templates. As for the shortcode, you can choose the heading level you want instead of h2 for the questions, for example: <?php sliding_faq('h3'); ?>
, and you can choose a FAQ topic: <?php sliding_faq('h3','Accessibility'); ?>