Version Description
(2021-04-09) = - Disables group-by-category if there's only a single FAQ, which rectifies issue of duplicates showing on single post page.
Download this release
Release Info
Developer | Rustaurius |
Plugin | Ultimate FAQ |
Version | 2.0.3 |
Comparing to | |
See all releases |
Code changes from version 2.0.2 to 2.0.3
- readme.txt +3 -0
- ultimate-faqs.php +1 -1
- views/View.FAQs.class.php +2 -2
readme.txt
CHANGED
@@ -264,6 +264,9 @@ Video 3 - FAQs Ordering
|
|
264 |
|
265 |
== Changelog ==
|
266 |
|
|
|
|
|
|
|
267 |
= 2.0.2 (2021-04-08) =
|
268 |
- When using the "include_category" attribute while having "Group FAQs by Category" enabled, FAQs that are included in multiple categories will only be displayed in the categories specified in the "include_category" attribute.
|
269 |
- Generated a new .pot file.
|
264 |
|
265 |
== Changelog ==
|
266 |
|
267 |
+
= 2.0.3 (2021-04-09) =
|
268 |
+
- Disables group-by-category if there's only a single FAQ, which rectifies issue of duplicates showing on single post page.
|
269 |
+
|
270 |
= 2.0.2 (2021-04-08) =
|
271 |
- When using the "include_category" attribute while having "Group FAQs by Category" enabled, FAQs that are included in multiple categories will only be displayed in the categories specified in the "include_category" attribute.
|
272 |
- Generated a new .pot file.
|
ultimate-faqs.php
CHANGED
@@ -7,7 +7,7 @@ Author: Etoile Web Design
|
|
7 |
Author URI: http://www.EtoileWebDesign.com/plugins/ultimate-faqs/
|
8 |
Terms and Conditions: http://www.etoilewebdesign.com/plugin-terms-and-conditions/
|
9 |
Text Domain: ultimate-faqs
|
10 |
-
Version: 2.0.
|
11 |
*/
|
12 |
|
13 |
if ( ! defined( 'ABSPATH' ) )
|
7 |
Author URI: http://www.EtoileWebDesign.com/plugins/ultimate-faqs/
|
8 |
Terms and Conditions: http://www.etoilewebdesign.com/plugin-terms-and-conditions/
|
9 |
Text Domain: ultimate-faqs
|
10 |
+
Version: 2.0.3
|
11 |
*/
|
12 |
|
13 |
if ( ! defined( 'ABSPATH' ) )
|
views/View.FAQs.class.php
CHANGED
@@ -43,8 +43,9 @@ class ewdufaqViewFAQs extends ewdufaqView {
|
|
43 |
*/
|
44 |
public function set_faqs( $faqs ) {
|
45 |
global $ewd_ufaq_controller;
|
46 |
-
|
47 |
$this->display_all_answers = sizeOf( $faqs ) == 1 ? true : $this->display_all_answers;
|
|
|
48 |
|
49 |
foreach ( $faqs as $faq ) {
|
50 |
|
@@ -468,7 +469,6 @@ class ewdufaqViewFAQs extends ewdufaqView {
|
|
468 |
public function set_faqs_options() {
|
469 |
global $ewd_ufaq_controller;
|
470 |
|
471 |
-
$this->group_by_category = empty( $this->group_by_category ) ? $ewd_ufaq_controller->settings->get_setting( 'group-by-category' ) : ( $this->group_by_category == "Yes" ? true : false );
|
472 |
$this->category_order = empty( $this->category_order ) ? $ewd_ufaq_controller->settings->get_setting( 'category-order' ) : $this->category_order;
|
473 |
$this->category_orderby = empty( $this->category_orderby ) ? $ewd_ufaq_controller->settings->get_setting( 'category-order-by' ) : $this->category_orderby;
|
474 |
$this->faqs_per_page = empty( $this->faqs_per_page ) ? $ewd_ufaq_controller->settings->get_setting( 'faqs-per-page' ) : $this->faqs_per_page;
|
43 |
*/
|
44 |
public function set_faqs( $faqs ) {
|
45 |
global $ewd_ufaq_controller;
|
46 |
+
|
47 |
$this->display_all_answers = sizeOf( $faqs ) == 1 ? true : $this->display_all_answers;
|
48 |
+
$this->group_by_category = sizeOf( $faqs ) == 1 ? false : $ewd_ufaq_controller->settings->get_setting( 'group-by-category' );
|
49 |
|
50 |
foreach ( $faqs as $faq ) {
|
51 |
|
469 |
public function set_faqs_options() {
|
470 |
global $ewd_ufaq_controller;
|
471 |
|
|
|
472 |
$this->category_order = empty( $this->category_order ) ? $ewd_ufaq_controller->settings->get_setting( 'category-order' ) : $this->category_order;
|
473 |
$this->category_orderby = empty( $this->category_orderby ) ? $ewd_ufaq_controller->settings->get_setting( 'category-order-by' ) : $this->category_orderby;
|
474 |
$this->faqs_per_page = empty( $this->faqs_per_page ) ? $ewd_ufaq_controller->settings->get_setting( 'faqs-per-page' ) : $this->faqs_per_page;
|