Page Title
-
How does the page generated by the “/events” slug know what to use as the “page title”?
My “page.php” has some code near the beginning that uses “the_title()”. For all other pages, the value comes from the pages title in WP. But, since the “/events” page isn’t an actual WP page, I want to know what I need to do make the page title appear as *something*.
What can I put in “page.php” to identify that I’m currently looking at the “/events” page? I know that I can identify it via “$_SERVER[‘REQUEST_URI’]”, but that seems so hacky. I tried looking at the TEC code, but I just couldn’t figure out how the plugin *knows* it should be invoked when I use the “/events” slug.
Any advice would be most appreciated!
The topic ‘Page Title’ is closed to new replies.