Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
  • #3251
    Jeremy Belolo

    Hello and thanks for this nice plugin,

    I just integrated it (beginning in WP) and have an issue I can’t resolve : when viewing the events list from the page, the title of the list is the same as the title of the first event in the list.

    I don’t speak about the title of the page, which is fine (displaying “events”), but in the title that is located just above the events list, in a h2 tag.

    Thanks ahead for your help !

    Jeremy Belolo

    Up please !


    Jeremy, please post a link to the site.

    Jeremy Belolo

    It’s in french but you can see that the title of the list is the same as the first event’s (currently, “La cueillette de l’espoir”).

    Thanks !


    Are you using the templates shipping with the plugin or did you copy the files from plugin templates folder into your theme folder?

    Jeremy Belolo

    I looked for the plugin into my admin area and installed it. I didn’t copied any template manually.


    Ok, so you have probably disabled plugin templates. Thats’s fine – it’s one of the options of the plugin. Now there must be something happening in the archive template being displayed. Can you tell me what is the code for title display (H2 selector) used on archive.php of your theme? (just copy and paste it here)


    Or provide a temporary admin access using ‘Set as private reply” option.

    Jeremy Belolo


    Thanks for your help !

    archive.php includes


    And then in it there is a conditional display of title in h2 tag :

    <div class="page-title pad group">
    	<?php if ( is_home() ) : ?>
    		<h2><?php echo alx_blog_title(); ?></h2>
    	<?php elseif ( is_single() ): ?>
    		<ul class="meta-single group">
    			<li class="category"><?php the_category(' <span>/</span> '); ?></li>
    			<?php if ( comments_open() && ( ot_get_option( 'comment-count' ) != 'off' ) ): ?>
    			<li class="comments"><a href="<?php comments_link(); ?>"><i class="fa fa-comments-o"></i><?php comments_number( '0', '1', '%' ); ?></a></li>
    			<?php endif; ?>
    	<?php elseif ( is_page() ): ?>
    		<h2><?php echo alx_page_title(); ?></h2>
    	<?php elseif ( is_search() ): ?>
    			<?php if ( have_posts() ): ?><i class="fa fa-search"></i><?php endif; ?>
    			<?php if ( !have_posts() ): ?><i class="fa fa-exclamation-circle"></i><?php endif; ?>
    			<?php $search_count = 0; $search = new WP_Query("s=$s & showposts=-1"); if($search->have_posts()) : while($search->have_posts()) : $search->the_post(); $search_count++; endwhile; endif; echo $search_count;?> <?php _e('Search results','hueman'); ?></h1>
    	<?php elseif ( is_404() ): ?>
    		<h1><i class="fa fa-exclamation-circle"></i><?php _e('Error 404.','hueman'); ?> <span><?php _e('Page not found!','hueman'); ?></span></h1>
    	<?php elseif ( is_author() ): ?>
    		<?php $author = get_userdata( get_query_var('author') );?>
    		<h1><i class="fa fa-user"></i><?php _e('Author:','hueman'); ?> <span><?php echo $author->display_name;?></span></h1>
    	<?php elseif ( is_category() ): ?>
    		<h1><i class="fa fa-folder-open"></i><?php _e('Category:','hueman'); ?> <span><?php echo single_cat_title('', false); ?></span></h1>
    	<?php elseif ( is_tag() ): ?>
    		<h1><i class="fa fa-tags"></i><?php _e('Tagged:','hueman'); ?> <span><?php echo single_tag_title('', false); ?></span></h1>
    	<?php elseif ( is_day() ): ?>
    		<h1><i class="fa fa-calendar"></i><?php _e('Daily Archive:','hueman'); ?> <span><?php echo get_the_time('F j, Y'); ?></span></h1>
    	<?php elseif ( is_month() ): ?>
    		<h1><i class="fa fa-calendar"></i><?php _e('Monthly Archive:','hueman'); ?> <span><?php echo get_the_time('F Y'); ?></span></h1>
    	<?php elseif ( is_year() ): ?>
    		<h1><i class="fa fa-calendar"></i><?php _e('Yearly Archive:','hueman'); ?> <span><?php echo get_the_time('Y'); ?></span></h1>
    	<?php else: ?>
    		<h2><?php the_title(); ?></h2>
    	<?php endif; ?>

    The last one is used to display the title in the events page.

    I also created a temporary admin access, providing it in private message. The admin section is in french though, so I don’t know if you will be ok using it…

    Jeremy Belolo
    This reply has been marked as private.

    Ok, so you need to paste another condition, because your theme does not detect the archives. This code below is Events Maker specific, works for event date archives too. Paste this anywhere in between the if statement you posted above:

    <?php elseif ( em_is_event_archive() ) : ?>
    	<?php if (em_is_event_archive('day')) :
    		printf(__('Event Daily Archives: %s', 'events-maker'), '<span>' . get_the_date() . '</span>');
    	elseif ( em_is_event_archive('month')) :
    		printf(__('Event Monthly Archives: %s', 'events-maker'), '<span>' . get_the_date(_x('F Y', 'monthly archives date format', 'events-maker')) . '</span>');
    	elseif ( em_is_event_archive('year')) :
    		printf(__('Event Yearly Archives: %s', 'events-maker'), '<span>' . get_the_date(_x('Y', 'yearly archives date format', 'events-maker')) . '</span>');
    	else :
    		_e( 'Events', 'events-maker' );
    	endif; ?>
    Jeremy Belolo

    Thank you very much ! That did the trick :)

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.