{"id":72949,"date":"2017-08-15T17:03:00","date_gmt":"2017-08-15T17:03:00","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/genesis-simple-faq\/"},"modified":"2020-04-13T15:25:12","modified_gmt":"2020-04-13T15:25:12","slug":"genesis-simple-faq","status":"closed","type":"plugin","link":"https:\/\/ssw.wordpress.org\/plugins\/genesis-simple-faq\/","author":2221624,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.9.2","stable_tag":"0.9.2","tested":"5.4.19","requires":"4.8","requires_php":"","requires_plugins":"","header_name":"Genesis Simple FAQ","header_author":"StudioPress","header_description":"A plugin for the Genesis Framework to manage FAQ components via shortcodes.","assets_banners_color":"7da5c5","last_updated":"2020-04-13 15:25:12","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/studiopress\/genesis-simple-faq","header_author_uri":"https:\/\/www.studiopress.com\/","rating":4.8,"author_block_rating":0,"active_installs":3000,"downloads":58450,"num_ratings":0,"support_threads":1,"support_threads_resolved":0,"author_block_count":0,"sections":["installation","changelog","description"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":"1","5":"3"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1756237","resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"1756237","resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":"1713773","resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1713773","resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.9.0","0.9.1","0.9.2","1.0.0"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1643,4445],"plugin_category":[43],"plugin_contributors":[145049,83001,77841,77842],"plugin_business_model":[],"class_list":["post-72949","plugin","type-plugin","status-closed","hentry","plugin_tags-faq","plugin_tags-genesis","plugin_category-customization","plugin_contributors-calvinkoepke","plugin_contributors-modernnerd","plugin_contributors-nathanrice","plugin_contributors-studiopress","plugin_committers-nathanrice","plugin_committers-studiopress","plugin_committers-wpengine","plugin_support_reps-andrea_r","plugin_support_reps-dreamwhisper","plugin_support_reps-modernnerd"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/genesis-simple-faq_7da5c5.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=installation-->\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/plugin-name<\/code> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>0.9.2<\/h4>\n\n<ul>\n<li>Further testing on more recent versions of WordPress<\/li>\n<li>Fix messaging issue when using non-Genesis theme<\/li>\n<li>Update the code to comply with WordPress coding standards.<\/li>\n<li>Add order attribute.<\/li>\n<li>Add compatibility for taxonomy with Gutenberg.<\/li>\n<li>Process shortcode in answers.<\/li>\n<\/ul>\n\n<h4>0.9.1<\/h4>\n\n<ul>\n<li>Add non-JS support.<\/li>\n<li>Add CSS opt out filter.<\/li>\n<li>Add category ID to taxonomy page.<\/li>\n<li>Set default to show all FAQs.<\/li>\n<\/ul>\n\n<h4>0.9.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>\n\n<!--section=description-->\n<p>A simple plugin to handle FAQ layout and interaction with a shortcode.<\/p>\n\n<h3>DEPRECATION NOTICE<\/h3>\n\n<p>This plugin is now deprecated and will no longer receive feature updates.<\/p>\n\n<p>Alternatives:\n- Block Editor users: build an FAQ page with the <a href=\"https:\/\/wordpress.org\/plugins\/atomic-blocks\">Atomic Blocks plugin<\/a> using the <a href=\"https:\/\/atomicblocks.com\/blocks\/accordion-block\/\">Accordion block<\/a>.\n- Classic Editor users: check out the wide range of <a href=\"https:\/\/wordpress.org\/plugins\/search\/faq\/\">other FAQ plugins<\/a>.<\/p>\n\n<h3>Usage<\/h3>\n\n<p>Adding a FAQ is easy and relies on custom post types to organize and format your FAQs. To add an FAQ, do the following:<\/p>\n\n<ol>\n<li>Go to Genesis Simple FAQ &gt; All FAQs.<\/li>\n<li>Enter a question in the Title box (required).<\/li>\n<li>Enter an answer into the Content Editor (required).<\/li>\n<li>Set a category, if applicable (optional).<\/li>\n<li>Click publish.<\/li>\n<\/ol>\n\n<p>To find the shortcode for that specific FAQ:<\/p>\n\n<ol>\n<li>Go to Genesis Simple FAQ &gt; All FAQs.<\/li>\n<li>The shortcode will be displayed in the table for each FAQ.<\/li>\n<\/ol>\n\n<p>When using the shortcode to display your FAQs, you can either display all FAQs by adding the shortcode without any parameters:<\/p>\n\n<pre><code>[gs_faq]\n<\/code><\/pre>\n\n<p>Or you can customize the display of FAQs using the following parameters:<\/p>\n\n<ul>\n<li><strong>id<\/strong>: The FAQ ID, either singular or a comma-separated list.<\/li>\n<li><strong>cat<\/strong>: The FAQ category ID, either singular or a comma-separated list.<\/li>\n<li><strong>limit<\/strong>: The number of FAQs that should be displayed.<\/li>\n<\/ul>\n\n<p>For example, FAQs can be displayed using one or more FAQ post type ID:<\/p>\n\n<pre><code>[gs_faq id=\"12, 24\"]\n<\/code><\/pre>\n\n<p>Or by one or more category ID:<\/p>\n\n<pre><code>[gs_faq cat=\"10, 11\"]\n<\/code><\/pre>\n\n<p>You can also specify how many FAQs will be displayed. For example:<\/p>\n\n<pre><code>[gs_faq cat=\"10, 11\" limit=\"10\"]\n<\/code><\/pre>\n\n<p>By default, the limit is set to the number of posts you've set to display in Settings &gt; Reading.\nEnter <code>-1<\/code> to display an infinite number of FAQs.<\/p>\n\n<p>NOTE: shortcodes should not be entered on consecutive lines, like so:<\/p>\n\n<pre><code>[gs_faq id=\"X\"]\n[gs_faq id=\"X\"]\n<\/code><\/pre>\n\n<p>Instead, shortcodes should be separated by at least one blank line, like so:<\/p>\n\n<pre><code>[gs_faq id=\"X\"]\n\n[gs_faq id=\"X\"]\n<\/code><\/pre>\n\n<p>You can also show FAQs by using the built in widget. Just go to the Appearance &gt; Widgets screen and drag the Genesis Simple FAQ widget to the widget area where you would like it to display. Then, enter a title and select a category to display FAQs from, and click save.<\/p>\n\n<h3>Filters<\/h3>\n\n<p>Currently, there are three filters: one to toggle JS animation on or off, one to control critical CSS output, and one to control the default FAQ markup.<\/p>\n\n<h3>JS Animation (jQuery Only)<\/h3>\n\n<p>By default, animation is set to true. This will add a slide animation to showing\/hiding the FAQ. To remove JS animation and rely on classes to do your state-changing, add the following to your <code>functions.php<\/code> file:<\/p>\n\n<pre><code>add_filter( 'gs_faq_js_animation', '__return_false' );\n<\/code><\/pre>\n\n<h3>Critical CSS<\/h3>\n\n<p>You can modify the CSS output using the following filter (styles are minified on the front-end):<\/p>\n\n<pre><code>add_filter( 'gs_faq_critical_styles', 'your_custom_function' );\nfunction your_custom_function( $styles ) {\n\n    $styles =\n        '.gs-faq {\n            padding: 5px 0;\n        }\n\n        .gs-faq__question {\n            display: block;\n            text-align: left;\n            width: 100%%;\n        }\n\n        .gs-faq__answer {\n            display: none;\n            padding: 5px;\n        }';\n\n    return $styles;\n\n}\n<\/code><\/pre>\n\n<h3>Default Markup<\/h3>\n\n<p>The following filter accepts 3 parameters:\n- <code>$template<\/code>: Full string of HTML to output.\n- <code>$question<\/code>: The title of the FAQ, usually a question.\n- <code>$answer<\/code>: The content of the FAQ, usually the answer.<\/p>\n\n<pre><code>add_filter( 'gs_faq_template', 'your_custom_function', 10, 3 );\nfunction your_custom_function( $template, $question, $answer ) {\n\n    $template = sprintf(\n        'The question: %s, and the answer: %s.',\n        $question,\n        $answer\n    );\n\n    return $template;\n\n}\n<\/code><\/pre>","raw_excerpt":"A simple plugin to handle FAQ layout and interaction with a shortcode.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ssw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/72949","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ssw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ssw.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ssw.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=72949"}],"author":[{"embeddable":true,"href":"https:\/\/ssw.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/studiopress"}],"wp:attachment":[{"href":"https:\/\/ssw.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=72949"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ssw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=72949"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ssw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=72949"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ssw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=72949"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ssw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=72949"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ssw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=72949"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}