Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter lelekcze

    (@lelekcze)

    This is the code for my better-search template:

    
    <div class="content-light-column-2-3" style="order: 1">
      <?php echo get_bsearch_results( $search_query, $limit ); ?>
    </div>
    <div class="content-light-column-1-3" style="order: 2">
      <div class="project-specific-sidebar-recolour">
        <?php echo __( 'Search Results for: ', 'better-search' ); ?>
        <?php echo $search_query; ?>
        <?php echo get_bsearch_form( $search_query ); ?>
        <?php echo get_bsearch_header( $search_query, $numrows, $limit ); ?>
        <?php if ( $bsearch_settings['include_heatmap'] ) : ?>
        <div id="heatmap">
          <div class="heatmap_overall">
            <h2><?php echo strip_tags( $bsearch_settings['title'] ); ?></h2>
            <?php echo get_bsearch_heatmap( 'daily=0' ); ?>
          </div>
        <?php endif;	?>
      </div>
    </div>

    “content-light-column-2-3” is the main left area for showing results,
    “content-light-column-1-3” is the sidebar for stats.

    • This reply was modified 8 years, 1 month ago by lelekcze.
    • This reply was modified 8 years, 1 month ago by lelekcze.
    Thread Starter lelekcze

    (@lelekcze)

    @ajay Thank you for your response!

    I’m building a custom theme. When you search for something, this will be the results page: https://dev.youngspinach.com/?s=title

    My goal is to have results on the left side and “statistics” in the right sidebar. I simply pasted <?php echo get_bsearch_header( $search_query, $numrows, $limit ); ?> into the code of the right sidebar, but it doesn’t load any data there as you can see (“Results 1 – 0 of “). On the left side, it still loads the data (“Results 1 – 8 of 10”) since I didn’t change that part code.

    • This reply was modified 8 years, 1 month ago by lelekcze.
Viewing 2 replies - 1 through 2 (of 2 total)