# event-post/5.10.4/views/search-results.php

Event Post, version 5.10.4. 32 lines.

- Page: https://pluginprobe.com/plugins/event-post/5.10.4/code/views/search-results.php
- Raw: https://pluginprobe.com/plugins/event-post/5.10.4/raw/views/search-results.php
- Modified: 2025-09-26T07:35:56+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/event-post/5.10.4/code/views/search-results.php#L10-L20`.

```php
<?php
/**
 * Search result
 *
 * @package event-post
 * @version 5.10.4
 * @since   5.0.0
 */
?>
 <div class="eventpost-search-results">
    <?php if($events->have_posts()): ?>
    <span class="eventpost-search-item-count">
        <?php // translators: %d is the number of events found ?>
        <?php printf(_n('%d event found', '%d events found', $events->post_count, 'event-post'), $events->post_count); ?>
    </span>
    <hr>
    <?php while($events->have_posts()): $events->the_post(); ?>
    <article class="eventpost-search-item">
        <a href="<?php the_permalink(); ?>">
            <?php the_post_thumbnail(); ?>
            <?php the_title(); ?>
        </a>
        <?php the_dates(); ?>
        <?php the_location(); ?>
        <?php the_excerpt(); ?>
    </article>
        <?php endwhile; ?>
    <?php else: ?>
        <?php _e('Sorry, there is no event matching your request.', 'event-post'); ?>
    <?php endif; ?>
</div>

```
