• Hi everybody, i’ve got my search-form and i’ve got my search.php

    <?php
    /*
    Template Name: Search Page
    */
    ?>
    <?php
    get_header();
    ?>
    
    	<div class="all-posts">
    		<?php if ( have_posts() ) : ?>
    			<?php printf( __( 'Search Results for: %s', 'politeka' ), get_search_query() ); ?>
    
    			<div class="grid-row">
    
    				<div class="grid-2 content">
    
    					<div class="articles">
    
    						<h2><?php single_cat_title(); ?></h2>
    
    						<div class="post-categories">
    							<a href="#">Все новости</a>
    							<a href="#">Статьи</a>
    							<a href="#">Эксклюзивы</a>
    						</div>
    
    						<?php
    						while ( have_posts() ) : the_post(); ?>
    
    							<?php get_template_part( 'content' ); ?>
    
    						<?php
    						endwhile;
    						?>
    
    						<!--start pagination-->
    						<?php deco_load_more(); ?>
    						<!--end pagination-->
    					</div>
    
    				</div>
    
    				<div class="sidebar">
    					<?php get_sidebar( 'deco_sidebar' ); ?>
    
    				</div>
    				<!--end sidebar-->
    
    			</div>
    		<?php
    		else :
    			// If no content, include the "No posts found" template.
    			get_template_part( 'content', 'none' );
    			?>
    
    		<?php endif; ?>
    	</div>
    	<!--end all-posts-->
    
    <?php
    get_footer();
    ?>

    But they do not searching any content i enter, pls somebody help me)
    Thanks.

Viewing 1 replies (of 1 total)
  • Moderator t-p

    (@t-p)

    what theme are using?
    What WP version are you using?
    Any error message? Have you checked your error logs lately?

Viewing 1 replies (of 1 total)
  • The topic ‘My search form do not searching’ is closed to new replies.