Search result

0

Good afternoon guys,

I'm setting up a website in wordpress and everything is running right, I just want to make an adjustment on the search page, the searched word gets highlighted and delete results from the home page.

The theme was created, I am not using any purchased or free.

Follow the search.php page code

<?php if ( have_posts() ) : ?>

    <span>
        <?php _e( 'Resultado de busca por: ', 'empresa' ); ?><h1 class="tlt-prod"><?php the_search_query(); ?></h1></span>

    <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
    <div id="nav-above" class="navigation">
        <div class="nav-previous">
            <?php next_posts_link(__( '<span class="meta-nav">«</span> Older posts', 'empresa' )) ?></div>
        <div class="nav-next">
            <?php previous_posts_link(__( 'Newer posts <span class="meta-nav">»</span>', 'empresa' )) ?></div>
    </div>
    <!– #nav-above –>
    <?php } ?>

    <?php while ( have_posts() ) : the_post() ?>

    <div class="busca_search" id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
       <a href="<?php the_permalink(); ?>" title="<?php printf( __('Permalink to %s', 'empresa'), the_title_attribute('echo=0') ); ?>" rel="bookmark">
        <h2 class="entry-title">
                <?php the_title(); ?>
        </h2>

        <?php if ( $post->post_type == 'post' ) { ?>

        <!– .entry-meta –>
        <?php } ?>

        <div class="entry-summary">
            <?php the_excerpt( __( 'Continue reading <span class="meta-nav">»</span>', 'contmatic' )  ); ?>
            <?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'empresa' ) . '&after=</div>') ?>
        </div>
        <!– .entry-summary –>

        <?php if ( $post->post_type == 'post' ) { ?>

        <!– #entry-utility –>
        <?php } ?>
        </a>
    </div>
    <!– #post-<?php the_ID(); ?>–>

    <?php endwhile; ?>
    
asked by anonymous 25.07.2017 / 22:07

0 answers