HEX
Server: nginx/1.27.1
System: Linux in-4 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User: ilikadirect (1186)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v6964/iskcon/public_html/wp-content/themes/tow-temple/search.php
<?php 
get_header(); 
$upload_dir = wp_upload_dir();
?>
<div class="search-results my-5">
  <div class="container">
    <h1><?php printf( __( 'Search Results for: %s', 'textdomain' ), get_search_query() ); ?></h1>

    <?php if ( have_posts() ) : ?>
        <div class="search-results-list my-3">
            <?php while ( have_posts() ) : the_post(); ?>
                <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
                    <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
                    <div class="entry-summary">
                        <?php the_excerpt(); ?>
                    </div>
                </article>
            <?php endwhile; ?>
        </div>

        <div class="pagination">
            <?php
            // Pagination for search results
            the_posts_pagination( array(
                'prev_text' => __( 'Previous', 'textdomain' ),
                'next_text' => __( 'Next', 'textdomain' ),
            ) );
            ?>
        </div>

    <?php else : ?>
        <p><?php _e( 'Sorry, no results matched your criteria.', 'textdomain' ); ?></p>
    <?php endif; ?>
	
	</div>
</div>


<?php get_footer(); ?>