WordPress.org

Plugin Directory

Changeset 1733535 for event-post


Ignore:
Timestamp:
09/21/17 08:51:22 (4 weeks ago)
Author:
bastho
Message:

Display number of events in search result

File:
1 edited

Legend:

Unmodified
Added
Removed
  • event-post/trunk/views/search-results.php

    r1684297 r1733535  
    11<div class="eventpost-search-results"> 
    22    <?php if($events->have_posts()): ?> 
    3         <?php while($events->have_posts()): $events->the_post(); ?> 
     3    <span class="eventpost-search-item-count"> 
     4        <?php printf(_n('%d event found', '%d events found', $events->post_count, 'event-post'), $events->post_count); ?> 
     5    </span> 
     6    <hr> 
     7    <?php while($events->have_posts()): $events->the_post(); ?> 
    48    <article class="eventpost-search-item"> 
    59        <a href="<?php the_permalink(); ?>"> 
Note: See TracChangeset for help on using the changeset viewer.