Forums Forums Search & Filter Pro Integration with X Theme

Viewing 10 posts - 1 through 10 (of 18 total)
  • Anonymous
    #26686

    Hi Ross, I need to integrate your plugin with my new theme.

    The template that outputs the search results has this code:

    <?php
    
    // =============================================================================
    // VIEWS/GLOBAL/_INDEX.PHP
    // -----------------------------------------------------------------------------
    // Includes the index output.
    // =============================================================================
    
    $stack = x_get_stack();
    
    if ( is_home() ) :
      $style     = x_get_option( 'x_blog_style', 'standard' );
      $cols      = x_get_option( 'x_blog_masonry_columns', '2' );
      $condition = is_home() && $style == 'masonry';
    elseif ( is_archive() ) :
      $style     = x_get_option( 'x_archive_style', 'standard' );
      $cols      = x_get_option( 'x_archive_masonry_columns', '2' );
      $condition = is_archive() && $style == 'masonry';
    elseif ( is_search() ) :
      $condition = false;
    endif;
    
    ?>
    
    <?php if ( $condition ) : ?>
    
      <?php x_get_view( 'global', '_script', 'isotope-index' ); ?>
    
      <div id="x-iso-container" class="x-iso-container x-iso-container-posts cols-<?php echo $cols; ?>">
    
        <?php if ( have_posts() ) : ?>
          <?php while ( have_posts() ) : the_post(); ?>
            <?php if ( $stack != 'ethos' ) : ?>
              <?php x_get_view( $stack, 'content', get_post_format() ); ?>
            <?php else : ?>
              <?php x_ethos_entry_cover( 'main-content' ); ?>
            <?php endif; ?>
          <?php endwhile; ?>
        <?php else : ?>
          <?php x_get_view( 'global', '_content-none' ); ?>
        <?php endif; ?>
    
      </div>
    
    <?php else : ?>
    
      <?php if ( have_posts() ) : ?>
        <?php while ( have_posts() ) : the_post(); ?>
          <?php x_get_view( $stack, 'content', get_post_format() ); ?>
        <?php endwhile; ?>
      <?php else : ?>
        <?php x_get_view( 'global', '_content-none' ); ?>
      <?php endif; ?>
    
    <?php endif; ?>
    
    <?php pagenavi(); ?>
    Anonymous
    #26687
    This reply has been marked as private.
    Ross Moderator
    #26754

    Hey thanks for the updates, I’m going to send a new version tomorrow, which would hopefully mean all you need to do is add 1 line of code to that template to get it working 🙂

    Anonymous
    #26758

    that would be great! basically it seems to work now but it redirect to the search instead of staying in the same page

    I’ll update it tomorrow then

    Anonymous
    #26808

    Let me know when update in online Ross thanks.

    If there’s a way also you can check our installation (this theme works good with your plugin) even paid work would be great. Your plugin for use is ESSENTIAL

    thanks again mate

    Ross Moderator
    #26860
    This reply has been marked as private.
    Anonymous
    #26889
    This reply has been marked as private.
    Ross Moderator
    #26898
    This reply has been marked as private.
    Anonymous
    #26935
    This reply has been marked as private.
    Anonymous
    #26936
    This reply has been marked as private.
Viewing 10 posts - 1 through 10 (of 18 total)