HEX
Server: nginx/1.24.0
System: Linux nowruzgan 6.8.0-57-generic #59-Ubuntu SMP PREEMPT_DYNAMIC Sat Mar 15 17:40:59 UTC 2025 x86_64
User: babak (1000)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/www/meysamkiani.com/root/wp-content/themes/author/search.php
<?php get_header(); ?>
<div class="archive-header">
	<div class="post-header">
		<h1 class="post-title">
			<?php
			global $wp_query;
			$total_results = $wp_query->found_posts;
			$s             = htmlentities( $s );
			if ( $total_results ) {
				printf( esc_html( _n( '%1$d search result for "%2$s"', '%1$d search results for "%2$s"', $total_results, 'author' ) ), $total_results, $s );
			} else {
				printf( esc_html__( 'No search results for "%s"', 'author' ), $s );
			}
			?>
		</h1>
		<?php get_search_form(); ?>
	</div>
</div>
<div id="loop-container" class="loop-container">
	<?php
	if ( have_posts() ) :
		while ( have_posts() ) :
			the_post();
			get_template_part( 'content', 'archive' );
		endwhile;
	endif;
	?>
</div>
<?php

the_posts_pagination();

// only display bottom search bar if there are search results
$total_results = $wp_query->found_posts;
if ( $total_results ) { ?>
	<div class="search-bottom archive-header">
		<p><?php _e( "Can't find what you're looking for?  Try refining your search:", "author" ); ?></p>
		<?php get_search_form(); ?>
	</div>
<?php }

get_footer();