• Resolved jowelboss

    (@jowelboss)


    I want to show number of search results like ” 1 2 3 4 5 6 7 8 9 10 Next” or
    wordpress: 1 2…45 Next ? .My search .php code is

    <?php get_header();?>, 
    
        <div id="content" class="span8">
    		<div class="padder">
    
    		<?php do_action( 'bp_before_blog_search' ) ?>
    
    		<div class="page" id="blog-search">
    
    			<h2 class="pagetitle"><?php _e( 'Blog', 'cc' ) ?></h2>
    
    			<?php if( have_posts () ) : ?>
    
    				<h3 class="pagetitle">Search Results</h3>
    				<div class="navigation">
    					<div class="alignleft"><?php next_posts_link( __( '← Previous Entries', 'cc' ) ) ?></div>
    					<div class="alignright"><?php previous_posts_link( __( 'Next Entries →', 'cc' ) ) ?></div>
    				</div>
    
    				<?php while (have_posts()) : the_post(); ?>
    
    					<?php do_action( 'bp_before_blog_post' ) ?>
    
    					<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
     <p class="date">
                                        <span class="publish-date"><?php the_time() ?></span>
    
                                    </p>
    
    						<div class="post-content span11">
    							<h2 class="posttitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e( 'Permanent Link to', 'cc' ) ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    	<?php
    if ( function_exists('the_excerpt') && is_search() ) {
    the_excerpt();
    } ?>
    
                                <div class="search-date-info">
    
                                        </em>
                                    </p>
                                </div>
    
    							<p class="postmetadata"> <span class="comments"><?php comments_popup_link( __( 'No Comments ?', 'cc' ), __( '1 Comment ?', 'cc' ), __( '% Comments ?', 'cc' ) ); ?></span></p>
    						</div>
    
    					</div>
                        <div class="clear"></div>
    					<?php do_action( 'bp_after_blog_post' ) ?>
    
    				<?php endwhile; ?>
    
    					<div class="alignright"><?php previous_posts_link( __( 'Next Entries →', 'cc' ) ) ?></div>
    				</div>
    
    			<?php else : ?>
    
    				<h2 class="center"><?php _e( 'No posts found. Try a different search?', 'cc' ) ?></h2>
    				<?php locate_template( array( '/searchform.php'), true ) ?>
    
    			<?php endif; ?>
    		</div>
    		<?php do_action( 'bp_after_blog_search' ) ?>
    
    		</div><!-- .padder -->
    	</div><!-- #content -->
    
    <?php get_footer() ?>

    .Help me.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to show number of search results like google or wordpress?’ is closed to new replies.