| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /HostingSpaces/admin/tickwaves.co.uk/wwwroot/wp-content/themes/oceanwp/partials/search/ |
Upload File : |
<?php
/**
* Search result page entry content
*
* @package OceanWP WordPress theme
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
global $post;
// Excerpt length.
$length = apply_filters( 'ocean_search_results_excerpt_length', '30' );
?>
<div class="search-entry-summary clr"<?php oceanwp_schema_markup( 'entry_content' ); ?>>
<p>
<?php
// Display excerpt.
if ( has_excerpt( $post->ID ) ) {
the_excerpt();
} else {
// Display custom excerpt.
echo wp_kses_post( wp_trim_words( strip_shortcodes( $post->post_content ), $length ) );
}
?>
</p>
</div><!-- .search-entry-summary -->