Plugin Author
Franky
(@liedekef)
Your theme needs to use the standard WP call “the_title()”, see the standard themes that come with WP.
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://wordpress.org/themes/about/ and do the unit tests.
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…