Changeset 467587
- Timestamp:
- 11/25/2011 10:52:06 PM (14 years ago)
- Location:
- wp-super-faq/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (4 diffs)
-
wp_super_faq.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-super-faq/trunk/readme.txt
r465818 r467587 5 5 Requires at least: 3.1 6 6 Tested up to: 3.2.1 7 Stable tag: 0.5. 37 Stable tag: 0.5.4 8 8 9 9 A lightweight FAQ/QNA plugin that includes an FAQ shortcode for your site. A simple jQuery animation is included to show/hide each question. … … 11 11 == Description == 12 12 13 WP Super FAQ uses the WordPress 3.1+ custom post types and taxonomies to include support for an FAQ (Frequently Asked Questions ) on your site. The interface uses jQuery to provide a small animation that lets users click the questions they are interested in to display the answer. The goal of this plugin was for extremely lightweight code that provides easy setup, addition of questions, and a clean user interface. Also included in this plugin is the option of putting questions in different 'categories' to display. Please see the screenshots for examples. If you have feedback or questions head over to my [feedback and support](http://plugins.swampedpublishing.com/wp-super-faq) page for this plugin.13 WP Super FAQ uses the WordPress 3.1+ custom post types and taxonomies to include support for an FAQ (Frequently Asked Questions/Question and Answer) on your site. The interface uses jQuery to provide a small animation that lets users click the questions they are interested in to display the answer. The goal of this plugin was for extremely lightweight code that provides easy setup, addition of questions, and a clean user interface. Also included in this plugin is the option of putting questions in different 'categories' to display. Please see the screenshots for examples. If you have feedback or questions head over to my [feedback and support](http://plugins.swampedpublishing.com/wp-super-faq) page for this plugin. 14 14 15 15 == Installation == … … 52 52 == Changelog == 53 53 54 = 0.5.4 = 55 Added a test to see if get_current_screen exists before using it. 56 Fixed the queries so showposts and posts_per_page are both -1. This should override the WP posts per page setting in the backend. This was supposed to be fixed in 0.3 (see below) but it wasn't for certain themes. 57 54 58 = 0.5.3 = 55 59 Fixed an error with the show_categories shortcode. This bug causes funny line breaks in some themes. … … 79 83 == Upgrade Notice == 80 84 85 = 0.5.4 = 86 Added a test to see if get_current_screen exists before using it. 87 Fixed the queries so showposts and posts_per_page are both -1. This should override the WP posts per page setting in the backend. This was supposed to be fixed in 0.3 (see below) but it wasn't for certain themes. 88 81 89 = 0.5.3 = 82 90 Fixed an error with the show_categories shortcode. This bug causes funny line breaks in some themes. -
wp-super-faq/trunk/wp_super_faq.php
r465818 r467587 4 4 Plugin URI: http://plugins.swampedpublishing.com/wp-super-faq 5 5 Description: A lightweight Wordpress Plugin that implements an FAQ page on your site using simple jQuery animation for a clean, usable interface. 6 Version: 0.5. 36 Version: 0.5.4 7 7 Author: rfrankel 8 8 Author URI: http://plugins.swampedpublishing.com/ … … 116 116 // Change title text in editor 117 117 function wp_super_faq_custom_title_text( $title ){ 118 $screen = get_current_screen(); 119 if ( 'wp_super_faq' == $screen->post_type ) { 120 $title = 'Enter question here'; 118 if (function_exists ('get_current_screen')) { 119 $screen = get_current_screen(); 120 if ( 'wp_super_faq' == $screen->post_type ) { 121 $title = 'Enter question here'; 122 } 123 return $title; 121 124 } 122 return $title;123 125 } 124 126 add_filter( 'enter_title_here', 'wp_super_faq_custom_title_text' ); … … 126 128 // Add default content text 127 129 function wp_super_faq_custom_content_text( $content ) { 128 $screen = get_current_screen(); 129 if ( 'wp_super_faq' == $screen->post_type ) { 130 $content = 'Enter answer here'; 130 if (function_exists ('get_current_screen')) { 131 $screen = get_current_screen(); 132 if ( 'wp_super_faq' == $screen->post_type ) { 133 $content = 'Enter answer here'; 134 } 135 return $content; 131 136 } 132 return $content;133 137 } 134 138 add_filter( 'default_content', 'wp_super_faq_custom_content_text' ); … … 163 167 $post_category_slug = $term->slug; 164 168 // Custom Loop 165 $wp_super_faq_query = new WP_Query( "taxonomy=wp_super_faq_category&term=$term->slug&posts_per_page=-1 " );169 $wp_super_faq_query = new WP_Query( "taxonomy=wp_super_faq_category&term=$term->slug&posts_per_page=-1&showposts=-1" ); 166 170 // The Loop 167 171 while ($wp_super_faq_query->have_posts()) : $wp_super_faq_query->the_post(); … … 176 180 } else { 177 181 if ( $show_specific_category ) { 178 $wp_super_faq_query = new WP_Query( "taxonomy=wp_super_faq_category&term=$show_specific_category&posts_per_page=-1 " );182 $wp_super_faq_query = new WP_Query( "taxonomy=wp_super_faq_category&term=$show_specific_category&posts_per_page=-1&showposts=-1" ); 179 183 } else { 180 $wp_super_faq_query = new WP_Query( array( 'post_type' => 'wp_super_faq', 'posts_per_page' => '-1', ));184 $wp_super_faq_query = new WP_Query( 'post_type=wp_super_faq&posts_per_page=-1&showposts=-1' ); 181 185 } 182 186
Note: See TracChangeset
for help on using the changeset viewer.