Forums › Forums › Search & Filter Pro › Ajax and Search Filter Pro
Tagged: 3 column, Enfold, grid, Novice, results.php
- This topic has 15 replies, 2 voices, and was last updated 8 years, 4 months ago by
Trevor.
-
Trevor(Private) April 19, 2017 at 11:58 am #103732
The grid I made using our results.php for Enfold was this:
<?php /** * Search & Filter Pro * * Sample Results Template * * @package Search_Filter * @author Ross Morsali * @link http://www.designsandcode.com/ * @copyright 2015 Designs & Code * * Note: these templates are not full page templates, rather * just an encaspulation of the your results loop which should * be inserted in to other pages by using a shortcode - think * of it as a template part * * This template is an absolute base example showing you what * you can do, for more customisation see the WordPress docs * and using template tags - * * http://codex.wordpress.org/Template_Tags * */ if ( $query->have_posts() ) { $gridTotalPostCount = $query->found_posts; ?> Found <?php echo $gridTotalPostCount; ?> Results<br /> Page <?php echo $query->query['paged']; ?> of <?php echo $query->max_num_pages; ?><br /> <div class="pagination"> <div class="nav-previous"><?php next_posts_link( 'Older posts', $query->max_num_pages ); ?></div> <div class="nav-next"><?php previous_posts_link( 'Newer posts' ); ?></div> <?php /* example code for using the wp_pagenavi plugin */ if (function_exists('wp_pagenavi')) { echo "<br />"; wp_pagenavi( array( 'query' => $query ) ); } ?> </div> <div data-autoplay="" data-interval="5" data-animation="fade" data-show_slide_delay="90" class="avia-content-slider avia-content-grid-active avia-content-slider1 avia-content-slider-odd avia-builder-el-2 el_after_av_textblock avia-builder-el-last " itemscope="itemscope" itemtype="https://schema.org/Blog"> <div class="avia-content-slider-inner"> <?php $gridRowPostCount = 1; while ($query->have_posts()) { $query->the_post(); if ( $gridRowPostCount == 1 ) {?> <div class="slide-entry-wrap"> <?php } ?> <article class="flex_column av_one_third <?php if ( $gridRowPostCount == 1 ) echo 'first';?>" itemscope="itemscope" itemtype="https://schema.org/BlogPosting" itemprop="blogPost"> <?php if ( has_post_thumbnail() ) { ?><a data-rel="slide-1" class="slide-image" title="" href="<?php the_permalink(); ?>"><?php the_post_thumbnail("portfolio"); echo '</a>'; } ?> <h3 class="slide-entry-title entry-title" itemprop="headline"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> <div class="slide-meta"><time class="slide-meta-time updated" itemprop="datePublished"><?php the_date(); ?></time></div> </article> <?php if ( ( $gridRowPostCount == 3 ) || ( $gridRowPostCount == $gridTotalPostCount ) ) {?> </div> <?php } $gridRowPostCount++; if ( $gridRowPostCount == 4 ) $gridRowPostCount = 1; ?> <?php } ?> </div></div> Page <?php echo $query->query['paged']; ?> of <?php echo $query->max_num_pages; ?><br /> <div class="pagination"> <div class="nav-previous"><?php next_posts_link( 'Older posts', $query->max_num_pages ); ?></div> <div class="nav-next"><?php previous_posts_link( 'Newer posts' ); ?></div> <?php /* example code for using the wp_pagenavi plugin */ if (function_exists('wp_pagenavi')) { echo "<br />"; wp_pagenavi( array( 'query' => $query ) ); } ?> </div> <?php } else { echo "No Results Found"; } ?>
Trevor(Private) April 19, 2017 at 7:49 pm #103886I do not know where that is coming from. It appears to be a content element that has not deleted properly, or something?
I cannot edit the page as you have it open, and I am ill and need to get to bed.
If it is not resolved before you go to bed, send me a message and I will look in the morning.
-
AuthorPosts