webdragon

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: cryout serious slider doesn't reset the $post global #38766
    webdragon
    Participant

    the theme we were using was the Sage package from https://roots.io/sage/ to create a custom bootstrap-based theme, and we were using a created front-page.php file consissting of

    <?php while (have_posts()) : the_post(); ?>
      <?php // get_template_part('templates/page', 'header'); ?>
      <?php get_template_part('templates/content', 'slider'); ?>
      <?php get_template_part('templates/content', 'page'); ?>
    <?php endwhile; ?>

    the relevant template part being in templates/content-slider.php :

    
    <?php
    echo do_shortcode( '[serious-slider id=4]' );
    wp_reset_query(); // which we had to add due to the bug
    ?> 
    • This reply was modified 8 years ago by webdragon.
Viewing 1 post (of 1 total)