Plugin Directory

Changeset 1597306


Ignore:
Timestamp:
02/16/2017 01:55:52 PM (9 years ago)
Author:
jitenit
Message:

updated plugin to new version and solved bug

Location:
faq-in-minute/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • faq-in-minute/trunk/faq_all.php

    r1546476 r1597306  
    22/*
    33 * Plugin Name: faq in minute
    4  * Plugin URI: twitter.com/jitendra_popat
     4 * Plugin URI: https://twitter.com/jitendra_popat
    55 * 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.0
     6 * Version: 2.1
    77 * Author: Jiten IT - Jitendra
    8  * Author URI: twitter.com/jitendra_popat
     8 * Author URI: https://twitter.com/jitendra_popat
    99 */
    1010
     
    190190
    191191    $args = array(
    192         'posts_per_page' => -1,
     192        'posts_per_page' => $limit,
    193193        'category_name' => $cat,
    194194        'faqcategory'=>$faqcat,
     
    202202    $output='<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">';
    203203
     204    global $post;
    204205    $the_query = new WP_Query($args);
    205  //  echo '<pre>'; print_r($faq_query); die();
    206 
    207206    $i = 1;
    208207    while ($the_query->have_posts()):
    209208        $the_query->the_post();
     209
    210210    $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. '">
    212212        <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.'">'
    214214                . get_the_title() . '</a></h4>
    215215            </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">
    217217                <div class="panel-body">' . get_the_content() . '</div>
    218218            </div>
     
    224224        return $output;
    225225}
    226 
    227226add_shortcode('showallfaq', 'faq_in_minute_shortcut');
    228227
  • faq-in-minute/trunk/readme.txt

    r1553500 r1597306  
    44Donate link: https://twitter.com/jitendra_popat
    55Requires at least: 3.0
    6 Tested up to: 4.7
     6Tested up to: 4.7.2
    77Stable tag: trunk
    88License: GPLv2 or later
     
    9292== Changelog ==
    9393
     94= 2.1 =
     95* Now you can add multiple faqcategory shortcode on same page.
     96
    9497= 2.0 =
    9598* solved text above issue in new version.
Note: See TracChangeset for help on using the changeset viewer.