Current Path : /storage/v11800/testtest/public_html/wp-content/themes/shoptimizer/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/testtest/public_html/wp-content/themes/shoptimizer/content-none.php |
<?php
/**
* The template part for displaying a message that posts cannot be found.
*
* Learn more: https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package shoptimizer
*/
?>
<div class="no-results not-found">
<header class="page-header">
<h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'shoptimizer' ); ?></h1>
</header><!-- .page-header -->
<div class="page-content">
<?php if ( is_search() ) : ?>
<p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'shoptimizer' ); ?></p>
<?php get_search_form(); ?>
<?php else : ?>
<p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'shoptimizer' ); ?></p>
<?php get_search_form(); ?>
<?php endif; ?>
<?php
$noSearchResults = '';
$query = new WP_Query(
array(
'post_type' => 'wp_block',
'title' => 'No Search Results',
'post_status' => 'publish',
'posts_per_page' => 1
)
);
if ( $query->have_posts() == NULL ) {
$noSearchResults = false;
} else {
$object = $query->post;
echo apply_filters('the_content', $object->post_content);
wp_reset_postdata();
}
?>
</div><!-- .page-content -->
</div><!-- .no-results -->