• Resolved stebcom

    (@stebcom)


    Hello,
    I have issues with the Events page, because it seems the event title is not being retrieved, so it’s replaced with ‘Events’. This is a theme related problem, but it’s not clear to me what can be the cause. I’ve already tried the different options under ‘Protection from theme loop’ with no luck.
    Do you have any idea of why this is happening?
    Thanks!

    https://www.ads-software.com/plugins/events-made-easy/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Franky

    (@liedekef)

    Your theme needs to use the standard WP call “the_title()”, see the standard themes that come with WP.

    Thread Starter stebcom

    (@stebcom)

    Hi Franky, thank you for your answer. It’s somehow more complicated: I tried replacing the custom function of my theme with the standard “the_title()” call, but nothing changes. The only other difference between my custom theme and a standard one is that the title block is written in the header.php file, instead of the page.php.
    Also, I cannot see the right title in the browser tab(<title> tag), even if it’s called the wp_title() function.

    Plugin Author Franky

    (@liedekef)

    the_title() needs to be called in “the loop”, so I don’t think header.php is the correct place to put it.
    First try the standard theme and add your differences from there.
    Also, there exist some good theme how-to’s on the net too for wordpress read the guidelines here: https://www.ads-software.com/themes/about/ and do the unit tests.

    Thread Starter stebcom

    (@stebcom)

    Yes, the_title() has to be called from inside the loop, you’re right. I edited the code to make the function to be called this way, but it doesn’t work:I still get ‘Events’ as title.
    The problem is that neither the wp_title() is working, so there must be something else I’m missing…

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Event title not being displayed’ is closed to new replies.