Hi Micky,
You should be able to use the standard WordPress function
<?php the_title(); ?>
on single event pages.
Is your theme using that tag?
Hi caimin,
thanx for the reply…
no, that tag is not used in the full width template of the theme . But I do not understand how this tag would help the mobile menu to display the name of the displayed dynamic page. Saying this: where would you put the tag to achieve a correct current page name display in the mobile menu ( i’m assuming you have looked at the mobile menu used in the theme) ?
the themes full width template is basically this:
<?php while (have_posts()) : the_post(); ?>
<?php get_template_part( 'loop-header' ); ?>
<?php responsive_entry_before(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php responsive_entry_top(); ?>
<?php get_template_part( 'post-meta-page' ); ?>
<div class="post-entry">
<?php the_content(__('Read more ›', 'responsive')); ?>
<?php wp_link_pages(array('before' => '<div class="pagination">' . __('Pages:', 'responsive'), 'after' => '</div>')); ?>
</div><!-- end of .post-entry -->
<?php get_template_part( 'post-data' ); ?>
<?php responsive_entry_bottom(); ?>
</div><!-- end of #post-<?php the_ID(); ?> -->
<?php responsive_entry_after(); ?>
<?php responsive_comments_before(); ?>
<?php comments_template( '', true ); ?>
<?php responsive_comments_after(); ?>
<?php
endwhile; ?>
I tested your site by going to a single events page and then resizing the browser until the layout changed and I saw the error message you mentioned.
That said, I think we’ve misunderstood each other. I thought you meant the problem was with the title, but it’s actually with the title as it appears in the menu.
That means you should probably look in the header file of your theme, rather than the single post template. You need to find the point where that menu is generated.
Depending on how it’s written, you’d probably need to use either
<?php the_title();?>
or
<?php get_the_title(): ?>
hi caimin,
Thanx for your help, you put me on the right track.
… it was no problem caused by events manager. It was an issue in the JS script for the mobile menu of that version of the theme which handles the page title to current page thing … the conditional could not handle a custom post format. I added the missing condition for the singel-event class. Works like a charm. Though it is not comprehensible that the fall through of the script didn’t catch the case.