Ultimate FAQ - Version 1.2.8

Version Description

  • Added an attribute, show_on_load, which will show all FAQs when the page first loads and then refresh the results when a visitor adds a search term
Download this release

Release Info

Developer Rustaurius
Plugin Icon 128x128 Ultimate FAQ
Version 1.2.8
Comparing to
See all releases

Code changes from version 1.2.7 to 1.2.8

Functions/EWD_UFAQ_Version_Update.php CHANGED
@@ -45,7 +45,7 @@ function EWD_UFAQ_Version_Update_Box() {
45
  <h3 class='hndle'><span><?php _e("Thank You!", 'EWD_UFAQ') ?></span></h3>
46
  <div class="inside">
47
  <?php if (get_option("EWD_UFAQ_Install_Flag") == "Yes") { ?><ul><li><?php _e("Thanks for installing the Ultimate FAQs plugin.", "EWD_UFAQ"); ?><br> <a href='https://www.youtube.com/channel/UCZPuaoetCJB1vZOmpnMxJNw'><?php _e("Subscribe to our YouTube channel ", "EWD_UFAQ"); ?></a> <?php _e("for tutorial videos on this and our other plugins!", "EWD_UFAQ");?> </li></ul>
48
- <?php } else { ?><ul><li><?php _e("Thanks for upgrading to version 1.2.7!", "EWD_UFAQ"); ?><br> <a href='https://wordpress.org/support/view/plugin-reviews/ultimate-faqs?filter=5'><?php _e("Please rate our plugin", "EWD_UFAQ"); ?></a> <?php _e("if you find Ultimate FAQs useful!", "EWD_UFAQ");?> </li></ul><?php } ?>
49
 
50
  <?php /* if (get_option("EWD_UFAQ_Install_Flag") == "Yes") { ?><ul><li><?php _e("Thanks for installing the Ultimate Product Catalogue Plugin.", "EWD_UFAQ"); ?><br> <a href='http://www.facebook.com/EtoileWebDesign'><?php _e("Follow us on Facebook", "EWD_UFAQ"); ?></a> <?php _e("to suggest new features or hear about upcoming ones!", "EWD_UFAQ");?> </li></ul>
51
  <?php } else { ?><ul><li><?php _e("Thanks for upgrading to version 2.2.9!", "EWD_UFAQ"); ?><br> <a href='http://www.facebook.com/EtoileWebDesign'><?php _e("Follow us on Facebook", "EWD_UFAQ"); ?></a> <?php _e("to suggest new features or hear about upcoming ones!", "EWD_UFAQ");?> </li></ul><?php } */ ?>
45
  <h3 class='hndle'><span><?php _e("Thank You!", 'EWD_UFAQ') ?></span></h3>
46
  <div class="inside">
47
  <?php if (get_option("EWD_UFAQ_Install_Flag") == "Yes") { ?><ul><li><?php _e("Thanks for installing the Ultimate FAQs plugin.", "EWD_UFAQ"); ?><br> <a href='https://www.youtube.com/channel/UCZPuaoetCJB1vZOmpnMxJNw'><?php _e("Subscribe to our YouTube channel ", "EWD_UFAQ"); ?></a> <?php _e("for tutorial videos on this and our other plugins!", "EWD_UFAQ");?> </li></ul>
48
+ <?php } else { ?><ul><li><?php _e("Thanks for upgrading to version 1.2.8!", "EWD_UFAQ"); ?><br> <a href='https://wordpress.org/support/view/plugin-reviews/ultimate-faqs?filter=5'><?php _e("Please rate our plugin", "EWD_UFAQ"); ?></a> <?php _e("if you find Ultimate FAQs useful!", "EWD_UFAQ");?> </li></ul><?php } ?>
49
 
50
  <?php /* if (get_option("EWD_UFAQ_Install_Flag") == "Yes") { ?><ul><li><?php _e("Thanks for installing the Ultimate Product Catalogue Plugin.", "EWD_UFAQ"); ?><br> <a href='http://www.facebook.com/EtoileWebDesign'><?php _e("Follow us on Facebook", "EWD_UFAQ"); ?></a> <?php _e("to suggest new features or hear about upcoming ones!", "EWD_UFAQ");?> </li></ul>
51
  <?php } else { ?><ul><li><?php _e("Thanks for upgrading to version 2.2.9!", "EWD_UFAQ"); ?><br> <a href='http://www.facebook.com/EtoileWebDesign'><?php _e("Follow us on Facebook", "EWD_UFAQ"); ?></a> <?php _e("to suggest new features or hear about upcoming ones!", "EWD_UFAQ");?> </li></ul><?php } */ ?>
Main.php CHANGED
@@ -7,7 +7,7 @@ Author: Etoile Web Design
7
  Author URI: http://www.EtoileWebDesign.com/wordpress-plugins/
8
  Terms and Conditions: http://www.etoilewebdesign.com/plugin-terms-and-conditions/
9
  Text Domain: EWD_UFAQ
10
- Version: 1.2.7
11
  */
12
 
13
  global $ewd_ufaq_message;
7
  Author URI: http://www.EtoileWebDesign.com/wordpress-plugins/
8
  Terms and Conditions: http://www.etoilewebdesign.com/plugin-terms-and-conditions/
9
  Text Domain: EWD_UFAQ
10
+ Version: 1.2.8
11
  */
12
 
13
  global $ewd_ufaq_message;
Shortcodes/Display_FAQ_Search.php CHANGED
@@ -10,6 +10,7 @@ function UFAQ_AJAX_Search($atts) {
10
  extract( shortcode_atts( array(
11
  'include_category' => "",
12
  'exclude_category' => "",
 
13
  'orderby' => "",
14
  'order' => "",
15
  'post_count' => -1),
@@ -46,10 +47,12 @@ function UFAQ_AJAX_Search($atts) {
46
  $ReturnString .= "<input type='hidden' name'post_count' value='" . $post_count . "' id='ufaq-post-count' />";
47
  $ReturnString .= "<input type='text' id='ufaq-ajax-text-input' class='ufaq-text-input' name='Question ' placeholder='" . $Enter_Question_Label . "...'>";
48
  $ReturnString .= "</div>";
49
- if ($Auto_Complete_Titles != "Yes") {$ReturnString .= "<label for='Submit'></label><input type='button' id='ufaq-ajax-search-btn' class='ewd-otp-submit pure-button pure-button-primary' name='Search' value='" . $Search_Label . "'>";}
50
  $ReturnString .= "</form>";
51
 
52
- $ReturnString .= "<div id='ufaq-ajax-results'></div>";
 
 
53
 
54
  return $ReturnString;
55
  }
10
  extract( shortcode_atts( array(
11
  'include_category' => "",
12
  'exclude_category' => "",
13
+ 'show_on_load' => "No",
14
  'orderby' => "",
15
  'order' => "",
16
  'post_count' => -1),
47
  $ReturnString .= "<input type='hidden' name'post_count' value='" . $post_count . "' id='ufaq-post-count' />";
48
  $ReturnString .= "<input type='text' id='ufaq-ajax-text-input' class='ufaq-text-input' name='Question ' placeholder='" . $Enter_Question_Label . "...'>";
49
  $ReturnString .= "</div>";
50
+ if ($Auto_Complete_Titles != "Yes" and $show_on_load == "No") {$ReturnString .= "<label for='Submit'></label><input type='button' id='ufaq-ajax-search-btn' class='ewd-otp-submit pure-button pure-button-primary' name='Search' value='" . $Search_Label . "'>";}
51
  $ReturnString .= "</form>";
52
 
53
+ $ReturnString .= "<div id='ufaq-ajax-results'>";
54
+ if ($show_on_load == "Yes") {$ReturnString .= do_shortcode("[ultimate-faqs include_category='" . $include_category . "' exclude_category='" . $exclude_category . "' orderby='" . $orderby . "' order='" . $order . "' post_count='" . $post_count . "']");}
55
+ $ReturnString .= "</div>";
56
 
57
  return $ReturnString;
58
  }
html/OptionsPage.php CHANGED
@@ -506,55 +506,55 @@
506
  <div class='ufaq-subsection'>
507
  <div class='ufaq-subsection-content' id='ufaq-subsection-inline'>
508
  <div class='ufaq-option ufaq-label-option'>
509
- <?php _e("Posted", 'UFAQ')?>
510
  <fieldset>
511
  <input type='text' name='posted_label' value='<?php echo $Posted_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
512
  </fieldset>
513
  </div>
514
  <div class='ufaq-option ufaq-label-option'>
515
- <?php _e("By", 'UFAQ')?>
516
  <fieldset>
517
  <input type='text' name='by_label' value='<?php echo $By_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
518
  </fieldset>
519
  </div>
520
  <div class='ufaq-option ufaq-label-option'>
521
- <?php _e("On", 'UFAQ')?>
522
  <fieldset>
523
  <input type='text' name='on_label' value='<?php echo $On_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
524
  </fieldset>
525
  </div>
526
  <div class='ufaq-option ufaq-label-option'>
527
- <?php _e("Categories", 'UFAQ')?>
528
  <fieldset>
529
  <input type='text' name='category_label' value='<?php echo $Category_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> />
530
  </fieldset>
531
  </div>
532
  <div class='ufaq-option ufaq-label-option'>
533
- <?php _e("Tags", 'UFAQ')?>
534
  <fieldset>
535
  <input type='text' name='tag_label' value='<?php echo $Tag_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
536
  </fieldset>
537
  </div>
538
  <div class='ufaq-option ufaq-label-option'>
539
- <?php _e("Enter your question", 'UFAQ')?>
540
  <fieldset>
541
  <input type='text' name='enter_question_label' value='<?php echo $Enter_Question_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
542
  </fieldset>
543
  </div>
544
  <div class='ufaq-option ufaq-label-option'>
545
- <?php _e("Search", 'UFAQ')?>
546
  <fieldset>
547
  <input type='text' name='search_label' value='<?php echo $Search_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
548
  </fieldset>
549
  </div>
550
  <div class='ufaq-option ufaq-label-option'>
551
- <?php _e("Permalink", 'UFAQ')?>
552
  <fieldset>
553
  <input type='text' name='permalink_label' value='<?php echo $Permalink_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
554
  </fieldset>
555
  </div>
556
  <div class='ufaq-option ufaq-label-option'>
557
- <?php _e("Back To Top", 'UFAQ')?>
558
  <fieldset>
559
  <input type='text' name='back_to_top_label' value='<?php echo $Back_To_Top_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
560
  </fieldset>
@@ -564,55 +564,55 @@
564
  <div class='ufaq-subsection'>
565
  <div class='ufaq-subsection-content' id='ufaq-subsection-inline'>
566
  <div class='ufaq-option ufaq-label-option'>
567
- <?php _e("Thank you for submitting an FAQ", 'UFAQ')?>
568
  <fieldset>
569
  <input type='text' name='thank_you_submit_label' value='<?php echo $Thank_You_Submit_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
570
  </fieldset>
571
  </div>
572
  <div class='ufaq-option ufaq-label-option'>
573
- <?php _e("Submit a Question", 'UFAQ')?>
574
  <fieldset>
575
  <input type='text' name='submit_question_label' value='<?php echo $Submit_Question_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
576
  </fieldset>
577
  </div>
578
  <div class='ufaq-option ufaq-label-option'>
579
- <?php _e("Please fill out the form below to submit a question.", 'UFAQ')?>
580
  <fieldset>
581
  <input type='text' name='please_fill_form_below_label' value='<?php echo $Please_Fill_Form_Below_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
582
  </fieldset>
583
  </div>
584
  <div class='ufaq-option ufaq-label-option'>
585
- <?php _e("Send Question", 'UFAQ')?>
586
  <fieldset>
587
  <input type='text' name='send_question_label' value='<?php echo $Send_Question_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
588
  </fieldset>
589
  </div>
590
  <div class='ufaq-option ufaq-label-option'>
591
- <?php _e("Question Title", 'UFAQ')?>
592
  <fieldset>
593
  <input type='text' name='question_title_label' value='<?php echo $Question_Title_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
594
  </fieldset>
595
  </div>
596
  <div class='ufaq-option ufaq-label-option'>
597
- <?php _e("What question is being answered?", 'UFAQ')?>
598
  <fieldset>
599
  <input type='text' name='what_question_being_answered_label' value='<?php echo $What_Question_Being_Answered_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
600
  </fieldset>
601
  </div>
602
  <div class='ufaq-option ufaq-label-option'>
603
- <?php _e("Proposed Answer", 'UFAQ')?>
604
  <fieldset>
605
  <input type='text' name='proposed_answer_label' value='<?php echo $Proposed_Answer_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
606
  </fieldset>
607
  </div>
608
  <div class='ufaq-option ufaq-label-option'>
609
- <?php _e("Review Author", 'UFAQ')?>
610
  <fieldset>
611
  <input type='text' name='review_author_label' value='<?php echo $Review_Author_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
612
  </fieldset>
613
  </div>
614
  <div class='ufaq-option ufaq-label-option'>
615
- <?php _e("What name should be displayed with your review?", 'UFAQ')?>
616
  <fieldset>
617
  <input type='text' name='what_name_with_review_label' value='<?php echo $What_Name_With_Review_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
618
  </fieldset>
506
  <div class='ufaq-subsection'>
507
  <div class='ufaq-subsection-content' id='ufaq-subsection-inline'>
508
  <div class='ufaq-option ufaq-label-option'>
509
+ <?php _e("Posted", 'EWD_UFAQ')?>
510
  <fieldset>
511
  <input type='text' name='posted_label' value='<?php echo $Posted_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
512
  </fieldset>
513
  </div>
514
  <div class='ufaq-option ufaq-label-option'>
515
+ <?php _e("By", 'EWD_UFAQ')?>
516
  <fieldset>
517
  <input type='text' name='by_label' value='<?php echo $By_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
518
  </fieldset>
519
  </div>
520
  <div class='ufaq-option ufaq-label-option'>
521
+ <?php _e("On", 'EWD_UFAQ')?>
522
  <fieldset>
523
  <input type='text' name='on_label' value='<?php echo $On_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
524
  </fieldset>
525
  </div>
526
  <div class='ufaq-option ufaq-label-option'>
527
+ <?php _e("Categories", 'EWD_UFAQ')?>
528
  <fieldset>
529
  <input type='text' name='category_label' value='<?php echo $Category_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> />
530
  </fieldset>
531
  </div>
532
  <div class='ufaq-option ufaq-label-option'>
533
+ <?php _e("Tags", 'EWD_UFAQ')?>
534
  <fieldset>
535
  <input type='text' name='tag_label' value='<?php echo $Tag_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
536
  </fieldset>
537
  </div>
538
  <div class='ufaq-option ufaq-label-option'>
539
+ <?php _e("Enter your question", 'EWD_UFAQ')?>
540
  <fieldset>
541
  <input type='text' name='enter_question_label' value='<?php echo $Enter_Question_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
542
  </fieldset>
543
  </div>
544
  <div class='ufaq-option ufaq-label-option'>
545
+ <?php _e("Search", 'EWD_UFAQ')?>
546
  <fieldset>
547
  <input type='text' name='search_label' value='<?php echo $Search_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
548
  </fieldset>
549
  </div>
550
  <div class='ufaq-option ufaq-label-option'>
551
+ <?php _e("Permalink", 'EWD_UFAQ')?>
552
  <fieldset>
553
  <input type='text' name='permalink_label' value='<?php echo $Permalink_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
554
  </fieldset>
555
  </div>
556
  <div class='ufaq-option ufaq-label-option'>
557
+ <?php _e("Back To Top", 'EWD_UFAQ')?>
558
  <fieldset>
559
  <input type='text' name='back_to_top_label' value='<?php echo $Back_To_Top_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
560
  </fieldset>
564
  <div class='ufaq-subsection'>
565
  <div class='ufaq-subsection-content' id='ufaq-subsection-inline'>
566
  <div class='ufaq-option ufaq-label-option'>
567
+ <?php _e("Thank you for submitting an FAQ", 'EWD_UFAQ')?>
568
  <fieldset>
569
  <input type='text' name='thank_you_submit_label' value='<?php echo $Thank_You_Submit_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
570
  </fieldset>
571
  </div>
572
  <div class='ufaq-option ufaq-label-option'>
573
+ <?php _e("Submit a Question", 'EWD_UFAQ')?>
574
  <fieldset>
575
  <input type='text' name='submit_question_label' value='<?php echo $Submit_Question_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
576
  </fieldset>
577
  </div>
578
  <div class='ufaq-option ufaq-label-option'>
579
+ <?php _e("Please fill out the form below to submit a question.", 'EWD_UFAQ')?>
580
  <fieldset>
581
  <input type='text' name='please_fill_form_below_label' value='<?php echo $Please_Fill_Form_Below_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
582
  </fieldset>
583
  </div>
584
  <div class='ufaq-option ufaq-label-option'>
585
+ <?php _e("Send Question", 'EWD_UFAQ')?>
586
  <fieldset>
587
  <input type='text' name='send_question_label' value='<?php echo $Send_Question_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
588
  </fieldset>
589
  </div>
590
  <div class='ufaq-option ufaq-label-option'>
591
+ <?php _e("Question Title", 'EWD_UFAQ')?>
592
  <fieldset>
593
  <input type='text' name='question_title_label' value='<?php echo $Question_Title_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
594
  </fieldset>
595
  </div>
596
  <div class='ufaq-option ufaq-label-option'>
597
+ <?php _e("What question is being answered?", 'EWD_UFAQ')?>
598
  <fieldset>
599
  <input type='text' name='what_question_being_answered_label' value='<?php echo $What_Question_Being_Answered_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
600
  </fieldset>
601
  </div>
602
  <div class='ufaq-option ufaq-label-option'>
603
+ <?php _e("Proposed Answer", 'EWD_UFAQ')?>
604
  <fieldset>
605
  <input type='text' name='proposed_answer_label' value='<?php echo $Proposed_Answer_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
606
  </fieldset>
607
  </div>
608
  <div class='ufaq-option ufaq-label-option'>
609
+ <?php _e("Review Author", 'EWD_UFAQ')?>
610
  <fieldset>
611
  <input type='text' name='review_author_label' value='<?php echo $Review_Author_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
612
  </fieldset>
613
  </div>
614
  <div class='ufaq-option ufaq-label-option'>
615
+ <?php _e("What name should be displayed with your review?", 'EWD_UFAQ')?>
616
  <fieldset>
617
  <input type='text' name='what_name_with_review_label' value='<?php echo $What_Name_With_Review_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
618
  </fieldset>
readme.txt CHANGED
@@ -37,7 +37,7 @@ Ultimate FAQ uses the WordPress custom post type functionality to create an FAQ
37
  * Responsive FAQ design
38
 
39
  = Premium features include =
40
- * WooCommerce FAQ tab on product page
41
  * Different display styles for your frequently asked questions
42
  * User-submitted FAQs
43
  * AJAX easy FAQ search with autocomplete for titles
@@ -106,6 +106,10 @@ On the FAQ settings page you can choose to link to twitter, facebook and more!
106
 
107
  You can use the shortcode, [ultimate-faq-search], which displays an AJAX search form. You can use the "Auto-Complete Titles" option to have a list of all matching questions pop up when a user has typed 3 or more characters.
108
 
 
 
 
 
109
  = How do I customize my FAQs, for example, to change the font? =
110
 
111
  You can customize the plugin by adding code to the Custom CSS box on the settings page, go to the "Custom CSS" box. For example to change the font you might want to add something like:
@@ -142,6 +146,9 @@ Video 3 - FAQs Ordering
142
  9. All answers displayed in the 'list' FAQ mode
143
 
144
  == Changelog ==
 
 
 
145
  = 1.2.7 =
146
  - Fixed an error where same page permalinks weren't opening the posts
147
 
37
  * Responsive FAQ design
38
 
39
  = Premium features include =
40
+ * WooCommerce FAQ tab with specific FAQs for each product on product page (<a href='https://www.youtube.com/watch?v=cH3p0fW4c5o'>YouTube Video</a>)
41
  * Different display styles for your frequently asked questions
42
  * User-submitted FAQs
43
  * AJAX easy FAQ search with autocomplete for titles
106
 
107
  You can use the shortcode, [ultimate-faq-search], which displays an AJAX search form. You can use the "Auto-Complete Titles" option to have a list of all matching questions pop up when a user has typed 3 or more characters.
108
 
109
+ = Can I display all FAQs on pageload using the [ultimate-faq-search] shortcode? =
110
+
111
+ You can add the attribute "show_on_load" to the shortcode, and set it to "Yes" to display all FAQs when the page first loads.
112
+
113
  = How do I customize my FAQs, for example, to change the font? =
114
 
115
  You can customize the plugin by adding code to the Custom CSS box on the settings page, go to the "Custom CSS" box. For example to change the font you might want to add something like:
146
  9. All answers displayed in the 'list' FAQ mode
147
 
148
  == Changelog ==
149
+ = 1.2.8 =
150
+ - Added an attribute, show_on_load, which will show all FAQs when the page first loads and then refresh the results when a visitor adds a search term
151
+
152
  = 1.2.7 =
153
  - Fixed an error where same page permalinks weren't opening the posts
154