• Resolved RussiaCristiana

    (@russiacristiana)


    We’re using the theme “Yume Tan”, and the plugin seems to work but it finds only the first 10 articles; no “go to next page” button after the last record found. We have already added “<?php echo ‘Relevanssi found ‘ . $wp_query->found_posts . ‘ hits’; ?>”, and removed other strings as you suggested in other posts here, but nothing happens. Is it an incompatibility with this theme?
    Thank you

    https://www.ads-software.com/plugins/relevanssi/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mikko Saari

    (@msaari)

    Does your theme have the “next page” link on the search results template? Can you go to the second page manually (ie. changing the url from https://www.example.com/?s=search to https://www.example.com/page/2/?s=search)? Or have you perhaps set the “Limit searches” option to 10? If you have, try disabling that option.

    Thread Starter RussiaCristiana

    (@russiacristiana)

    I fear it does not have “next” and “previous” page. I post here the code, if you’ll be so kind to give a glance at it:

    CODE in search.php ——————–
    <?php
    /**
    * The main template file.
    *
    * @package Yume Tan
    */
    get_header(); ?>
    <div id=”content”>
    <div class=”center”>
    <div class=”columnwrapp <?php do_action( ‘yume_display_ps’ ); ?>”>
    <div class=”clear”></div>
    <div class=”pagecontent”>
    <div class=”fullwidth”>
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <div id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
    <div class=”topbarpost”>
    <div class=”fleft”><i><?php _e( ‘in’, ‘yume-tan’ ); ?></i> <?php the_category(‘, ‘); ?></div>
    <div class=”fright”><span class=”postdate”><?php the_time( get_option( ‘date_format’ ) ); ?></span></div>
    </div>
    <div class=”postcontent”>
    <?php if( has_post_thumbnail() ) { ?>
    <div class=”thumb thumbleft”>
    “><?php echo get_the_post_thumbnail( $post->ID, ‘thumbnail’); ?>
    </div>
    <?php } ?>
    <h2>“><?php if(get_the_title($post->ID)) { the_title(); } else { the_time( get_option( ‘date_format’ ) ); } ?></h2>
    <p><?php the_excerpt(); ?></p>
    </div>
    <div class=”postfooter”>
    <div class=”fleft”>
    <span class=”commentcount”><?php comments_popup_link(‘<span class=”icon comments”></span> No Comments’, ‘<span class=”icon comments”></span> 1 Comment’, ‘<span class=”icon comments”></span> % Comments’, ‘comment-link’); ?></span>
    </div>
    <div class=”fright”>“><?php _e( ‘Scheda &#187’, ‘yume-tan’ ); ?></div>
    </div>
    </div>
    <?php endwhile; ?>
    <p class=”pagination”>
    <span class=”prev”><?php next_posts_link(__(‘Previous Posts’, ‘yume-tan’)) ?></span>
    <span class=”next”><?php previous_posts_link(__(‘Next posts’, ‘yume-tan’)) ?></span>
    </p>
    <?php else : ?>
    <h2 class=”center”><?php _e( ‘Nessun risultato’, ‘yume-tan’ ); ?></h2>
    <p class=”center”><?php _e( ‘La ricerca non ha ottenuto risultati. Controlla la digitazione.’, ‘yume-tan’ ); ?></p>
    <?php endif; ?>
    </div>
    </div>
    <?php echo ‘Relevanssi found ‘ . $wp_query->found_posts . ‘ hits’; ?>
    <?php get_sidebar(); ?>
    </div>
    </div>
    </div>
    <?php get_footer(); ?>

    —————————-

    Thread Starter RussiaCristiana

    (@russiacristiana)

    OK, WE CHANGED THE THEME.
    thank you anyway ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Found only the first 10 articles’ is closed to new replies.