Changeset 1597306
- Timestamp:
- 02/16/2017 01:55:52 PM (9 years ago)
- Location:
- faq-in-minute/trunk
- Files:
-
- 2 edited
-
faq_all.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
faq-in-minute/trunk/faq_all.php
r1546476 r1597306 2 2 /* 3 3 * Plugin Name: faq in minute 4 * Plugin URI: twitter.com/jitendra_popat4 * Plugin URI: https://twitter.com/jitendra_popat 5 5 * Description: Create your Faq in just minute. active plugin.go to admin. add new FAQ. and just simple paste this [showallfaq] in your page or in post. use [showallfaq] or [faq-in-minute] to display list of all FAQ. FAQ with modern Design. And for category base [showallfaq category="categoryname"] 6 * Version: 2. 06 * Version: 2.1 7 7 * Author: Jiten IT - Jitendra 8 * Author URI: twitter.com/jitendra_popat8 * Author URI: https://twitter.com/jitendra_popat 9 9 */ 10 10 … … 190 190 191 191 $args = array( 192 'posts_per_page' => -1,192 'posts_per_page' => $limit, 193 193 'category_name' => $cat, 194 194 'faqcategory'=>$faqcat, … … 202 202 $output='<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">'; 203 203 204 global $post; 204 205 $the_query = new WP_Query($args); 205 // echo '<pre>'; print_r($faq_query); die();206 207 206 $i = 1; 208 207 while ($the_query->have_posts()): 209 208 $the_query->the_post(); 209 210 210 $output .= '<div class="panel panel-default"> 211 <div class="panel-heading faq_heading" role="tab" id="headingOne' . $i . '" data-toggle="collapse" href="#collapseOne' . $i. '">211 <div class="panel-heading faq_heading" role="tab" id="headingOne' . $i .$post->ID. '" data-toggle="collapse" href="#collapseOne' . $i .$post->ID. '"> 212 212 <h4 class="panel-title"> 213 <a data-parent="#accordion" class="accordion-toggle" aria-expanded="true" aria-controls="collapseOne' . $i . '">'213 <a data-parent="#accordion" class="accordion-toggle" aria-expanded="true" aria-controls="collapseOne' . $i . $post->ID.'">' 214 214 . get_the_title() . '</a></h4> 215 215 </div> 216 <div class="panel-collapse collapse" id="collapseOne' . $i . '" aria-labelledby="headingOne' . $i .'" role="tabpanel">216 <div class="panel-collapse collapse" id="collapseOne' . $i . $post->ID.'" aria-labelledby="headingOne' . $i . $post->ID.'" role="tabpanel"> 217 217 <div class="panel-body">' . get_the_content() . '</div> 218 218 </div> … … 224 224 return $output; 225 225 } 226 227 226 add_shortcode('showallfaq', 'faq_in_minute_shortcut'); 228 227 -
faq-in-minute/trunk/readme.txt
r1553500 r1597306 4 4 Donate link: https://twitter.com/jitendra_popat 5 5 Requires at least: 3.0 6 Tested up to: 4.7 6 Tested up to: 4.7.2 7 7 Stable tag: trunk 8 8 License: GPLv2 or later … … 92 92 == Changelog == 93 93 94 = 2.1 = 95 * Now you can add multiple faqcategory shortcode on same page. 96 94 97 = 2.0 = 95 98 * solved text above issue in new version.
Note: See TracChangeset
for help on using the changeset viewer.