LH FAQ Shortcode

Plugin Banner

LH FAQ Shortcode

by shawfactor

Download
Description

This plugin provides a shortcode to include a HTML5 definition list suitable for FAQ’s or other question and answer lists.

This faq is powered by vanilla JavaScript and has minimal styling so it will not conflict with your theme or JavaScript framework. To learn how to configure the shortcode please read the plugin FAQ

Check out a live example.

View or our documentation for more information.

All tickets for the project are being tracked on GitHub.

  1. Upload the entire lh-faq-shortcode folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Add the shortcode [lh_faq_shortcode] to the content of the page on which you want the FAQ, see the FAQ for shortcode options.
How do I create Questions and answers?

Each question and answer is a WordPress post or page object. The Title is the question and the Answer is the content.

How do I display the FAQ’s?

Insert the [lh_faq_shortcode] into the post body of the page you wish to have an FAQ on. The short code should either have an attribute of post_parent (in which case the the Q&A’s which will be children of the post_parent ID) or post__in (in which case the the Q&A’s which will the post specied as ID’s in post__in).

Is this an FAQ on FAQ’s?

Yes it is!

1.00 May 01, 2016
Initial release.

1.02 September 12, 2018
Singleton pattern.

Back to top