The Events Calendar
[resolved] Bug? Page H1 the_title() does not return title for TEC pages (4 posts)

  1. mariai
    Posted 2 years ago #

    On inspecting the Events page (list view, month view, single event view)the h1 tag for the page is blank.

    <h1 class="entry-title post-title"></h1>

    The Responsive Theme just does:
    <h1 class="entry-title post-title"><?php the_title(); ?></h1>

    However, TEC does not grant it a title, so the H1 field is blank.

    WordPress says: the title can be suppressed by returning a falsey value (e.g. NULL, FALSE or the empty string) from the filter function.

    I can see TEC's meta.php does this, but I don't see a specific add_filter call.
    public static function the_title() {
    return get_the_title( get_the_ID() );

    I'm not sure of the implication of the above.

    Why does TEC not provide a title on a call to the_title()? And how is this corrected?


  2. Brook
    Modern Tribe Support Rep
    Plugin Author

    Posted 2 years ago #

    Howdy mariai!

    Our plugin actually heavily relies on the_title. If you look within our templates, such as the single-event.php one, you will see we ourselves call the_title() there and in numerous other files.

    Something about your environment is causing the_title to misbehave. Sometimes SEO plugins do things to the title and change the behavior, thus making room for conflicts like this. It could be any of your plugins, or even your theme. Try disabling them one at a time until the issue goes away to isolate which of them is conflicting. I wish you the best in figuring this out. Thanks for posting!

    - Brook

  3. mariai
    Posted 2 years ago #

    Hi Brook, As the plugin had another bug (which I posted and which has been identified as a bug) I had to switch to Timely's All in One Event Calendar (which also has bugs, but which were in my control - commenting out a line.)

    I hadn't gotten to SEO plugins by the time I posted, so it wasn't that conflict. My theme is Responsive, one of the most common themes and the foundation for a lot of sites, so not something esoteric.

    Kind regards,

  4. leahkoerper
    Modern Tribe Support Rep
    Plugin Author

    Posted 2 years ago #

    Hi Maria,

    Since you are no longer using The Events Calendar, I'm going to mark this thread resolved. Best of luck with your site!


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • The Events Calendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic