Version Description
(2021-05-05) = - Fixed an issue in which the "FAQs per page" wasn't populating subsequent pages when "Group FAQs by Category" was enabled.
Download this release
Release Info
Developer | Rustaurius |
Plugin | Ultimate FAQ |
Version | 2.0.15 |
Comparing to | |
See all releases |
Code changes from version 2.0.14 to 2.0.15
- readme.txt +3 -0
- ultimate-faqs.php +1 -1
- views/View.FAQs.class.php +10 -3
readme.txt
CHANGED
@@ -264,6 +264,9 @@ Video 3 - FAQs Ordering
|
|
264 |
|
265 |
== Changelog ==
|
266 |
|
|
|
|
|
|
|
267 |
= 2.0.14 (2021-04-29) =
|
268 |
- Fixed an issue causing it to sometimes take two clicks to open an FAQ when accordion was enabled and you were using a reveal effect.
|
269 |
- Set the default sort order for the popular-faqs shortcode to descending.
|
264 |
|
265 |
== Changelog ==
|
266 |
|
267 |
+
= 2.0.15 (2021-05-05) =
|
268 |
+
- Fixed an issue in which the "FAQs per page" wasn't populating subsequent pages when "Group FAQs by Category" was enabled.
|
269 |
+
|
270 |
= 2.0.14 (2021-04-29) =
|
271 |
- Fixed an issue causing it to sometimes take two clicks to open an FAQ when accordion was enabled and you were using a reveal effect.
|
272 |
- Set the default sort order for the popular-faqs shortcode to descending.
|
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.15
|
11 |
*/
|
12 |
|
13 |
if ( ! defined( 'ABSPATH' ) )
|
views/View.FAQs.class.php
CHANGED
@@ -150,10 +150,17 @@ class ewdufaqViewFAQs extends ewdufaqView {
|
|
150 |
$faq_count = 0;
|
151 |
|
152 |
foreach ( $this->category_faqs as $term_id => $category_faqs ) {
|
153 |
-
|
154 |
-
if ( ! empty( $this->include_categories ) and ! in_array( $term_id, $this->include_categories ) ) { continue; }
|
155 |
|
156 |
-
if (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
157 |
|
158 |
$this->current_category = get_term( $term_id );
|
159 |
|
150 |
$faq_count = 0;
|
151 |
|
152 |
foreach ( $this->category_faqs as $term_id => $category_faqs ) {
|
|
|
|
|
153 |
|
154 |
+
if ( ! empty( $this->include_categories ) and ! in_array( $term_id, $this->include_categories ) ) { continue; }
|
155 |
+
|
156 |
+
if ( $faq_count < $this->faqs_per_page * ( $this->faq_page - 1 ) ) {
|
157 |
+
|
158 |
+
$faq_count += sizeof( $category_faqs );
|
159 |
+
|
160 |
+
continue;
|
161 |
+
}
|
162 |
+
|
163 |
+
if ( $faq_count >= $this->faqs_per_page * ( $this->faq_page ) ) { continue; }
|
164 |
|
165 |
$this->current_category = get_term( $term_id );
|
166 |
|