-
Notifications
You must be signed in to change notification settings - Fork 0
/
faq.php
executable file
·47 lines (44 loc) · 1.47 KB
/
faq.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/**
*
* Template Name: FAQ Page
*
* @package WordPress
* @subpackage WP-Bootstrap
* @since WP-Bootstrap 0.1
*/
get_header(); ?>
<div class="container">
<div class="row content">
<div class="span7 well">
<?php if (function_exists('bootstrapwp_breadcrumbs')) bootstrapwp_breadcrumbs(); ?>
<?php query_posts('post_type=faq'); ?>
<?php $count=1 ?>
<?php
// Blog post query
if (have_posts()) : while ( have_posts() ) : the_post(); ?>
<div class="accordion" id="accordion1">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapse<?php echo $count?>">
<h5><?php echo $count?>. <?php the_title();?></h5>
</a>
</div>
<div id="collapse<?php echo $count?>" class="accordion-body collapse">
<div class="accordion-inner">
<?php the_excerpt();?>
</div>
</div>
</div><!--accordion group-->
<?php $count++ ?>
<?php endwhile; endif; ?>
</div><!--Accordion-->
</div><!-- /.span7 -->
</div><!-- /.row -->
</div><!-- /.Container -->
<?php get_sidebar('blog'); ?>
<?php get_footer(); ?>
<!--call the collapse function-->
<script language="text/javascript">
$(".collapse").collapse();
</script>