开发者 | heliossolutions |
---|---|
更新时间 | 2018年12月19日 15:00 |
PHP版本: | 4.0 及以上 |
WordPress版本: | 4.7.3 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
HS Simple Faq
to the /wp-content/plugins/
directory.[hs-faq limit="-1"]
Where limit specifies the number of posts to display. -1 will display all the posts.
So if you want to display only 5 FAQs. Then use following shortcode.
[hs-faq limit="5"]
If you want to custom order your faqs. Then you can use order and orderby parameter in shortcode. Use following shortcode
[hs-faq limit="5" orderby="date" order="ASC"]
To display FAQs of a specific category on a page. Add Following Shortcode to your page.
[hs-faq-cat id="14"]
Where 14 is the category ID.
You can also use the shortcode outside the post editor on a custom template.
echo do_shortcode('[hs-faq limit="-1"]');
To display all FAQs on a page. Create a page and add Following Shortcode to your page.
[hs-faq limit="-1"]
Where limit specifies the number of posts to display. -1 will display all the posts.
So if you want to display only 5 FAQs. Then use following shortcode.
[hs-faq limit="5"]
If you want to custom order your faqs. Then you can use order and orderby parameter in shortcode. Use following shortcode
[hs-faq limit="5" orderby="date" order="ASC"]
To display FAQs of a specific category on a page. Add Following Shortcode to your page.
[hs-faq-cat id="14"]
Where 14 is the category ID.
You can also use order and orderby parameter same as above
[hs-faq-cat id="14" orderby="date" order="ASC"]
You can also use the shortcode outside the post editor on a custom template.
echo do_shortcode('[hs-faq limit="-1"]');