This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <form role="search" method="post" class="search-form padding-4" action="<?php echo home_url( '/' ); ?>"> | |
| <label> | |
| <span class="screen-reader-text"><?php echo _x( 'Search for:', 'label' ) ?></span> | |
| <input type="search" class="search-field" placeholder="<?php echo esc_attr_x( 'Search...', 'placeholder' ) ?>" value="<?php echo get_search_query() ?>" name="s" title="<?php echo esc_attr_x( 'Search for:', 'label' ) ?>" /> | |
| <input class="post_type" type="hidden" name="post_type" value="frequent" /> | |
| </label> | |
| <input type="submit" class="search-submit button brand" id="searchsubmit" value="<?php echo esc_attr_x( 'Search', 'submit button' ) ?>" /> | |
| </form> | |
| <script type="text/javascript"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // WP_Query Arguments | |
| $args = array( | |
| 'order' => 'DESC', | |
| 'posts_per_page' => 5 | |
| ); | |
| // The Loop | |
| $query = new WP_Query( $args ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php if( have_rows('faqs') ): ?> | |
| <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true"> | |
| <?php $i=1; while ( have_rows('faqs') ) : the_row(); ?> | |
| <div class="panel panel-default"> | |
| <div class="panel-heading" role="tab" id="heading-<?php echo $i; ?>"> | |
| <h2 class="panel-title"> | |
| <a data-toggle="collapse" data-parent="#accordion" href="#collapse-<?php echo $i; ?>" aria-expanded="true" aria-controls="collapseOne"> | |
| <?php the_sub_field('question'); ?> | |
| </a> | |
| </h2> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Check for parent repeater row --> | |
| <?php if( have_rows('tab_panes') ): ?> | |
| <ul class="nav nav-tabs" role="tablist"> | |
| <?php $row = 1; // number rows ?> | |
| <?php // Step 1: Loop through rows, first displaying tab titles | |
| while( have_rows('tab_panes') ): the_row(); | |
| // ?> | |
| <li role="presentation" class="<?php if($row == 1) {echo 'active';}?>"> | |
| <a | |
| href="#<?php echo $row; ?>" |