WordPress.org

Ready to get started?Download WordPress

Forums

How to show numbered search results and add pagination? (1 post)

  1. vk011
    Member
    Posted 1 year ago #

    I managed to get search results working with this code:

    <?php while ( have_posts() ) : the_post(); ?>
    				<br>
    			<a href="<?php the_permalink(); ?>"><?php echo substr(strip_tags($post->post_content), 0, 46);?></a>
    			<br>

    but I want search results to be numbered and have pagination.

    How is that done?

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic