{"id":1010674,"date":"2015-10-01T14:35:35","date_gmt":"2015-10-01T21:35:35","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the_title-not-displaying-within-page-php\/"},"modified":"2015-10-02T11:45:40","modified_gmt":"2015-10-02T18:45:40","slug":"the_title-not-displaying-within-page-php","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the_title-not-displaying-within-page-php\/","title":{"rendered":"the_title not displaying within page.php"},"content":{"rendered":"<p>Greetings<\/p>\n<p>I searched up the site and might have missed a thread on that, if so, excuse this duplicate.<\/p>\n<p>To set the context, I am using Divi (by Elegant Themes) theme. I have a simple custom &#8220;page-event.php&#8221; used to display The Events Calendar stuff (configured in Settings &gt;\u00a0Display &gt; Events template). This is mainly to display the Title on the page.<\/p>\n<pre><code>&lt;?php\n\/*\nTemplate Name: Event Page\nSimplistic Page template, everything is in the Single-event.php template (\/tribe-events\/single-event.php)\n*\/\nget_header();\n\n$is_page_builder_used = et_pb_is_pagebuilder_used( get_the_ID() );\n\nwhile ( have_posts() ) : the_post(); \n\n?&gt;\n\n&lt;div id=&quot;main-content&quot;&gt;\n\t&lt;div class=&quot;title-container&quot;&gt;&lt;h1 class=&quot;tribe-events-single-event-title summary entry-title&quot;&gt;&lt;?php the_title(); ?&gt;&lt;\/h1&gt;&lt;\/div&gt;\n\t&lt;div class=&quot;container&quot;&gt;\n\t\t&lt;div id=&quot;content-area&quot; class=&quot;clearfix&quot;&gt;\n\t\t\t&lt;div id=&quot;left-area&quot;&gt;\n\t\t\t\t&lt;article id=&quot;post-&lt;?php the_ID(); ?&gt;&quot; &lt;?php post_class(); ?&gt;&gt;\n                \n\t\t\t\t&lt;?php the_content(); ?&gt;\n    \n    \n\t\t\t\t&lt;\/article&gt; &lt;!-- .et_pb_post --&gt;\n\t\t\t&lt;\/div&gt; &lt;!-- #left-area --&gt;\n\n\t\t\t&lt;?php get_sidebar(); ?&gt;\n\t\t&lt;\/div&gt; &lt;!-- #content-area --&gt;\n\t&lt;\/div&gt; &lt;!-- .container --&gt;\n\n&lt;\/div&gt; &lt;!-- #main-content --&gt;\n\n&lt;?php  endwhile;\n\nget_footer(); ?&gt;<\/code><\/pre>\n<p>My &#8220;Single-event.php&#8221; (located in my-theme\/tribes-events\/) is the standard one that I copied there. At first, I used to have everything from &#8220;page-event.php&#8221; into it, but that broke the calendar view (since it didn&#8217;t had those &lt;div id=&#8221;container&#8221;&gt;) so I had to revert back to having my &lt;? the_title(); ?&gt; into my &#8220;page-event.php&#8221; instead of within &#8220;single-event.php&#8221;.<\/p>\n<p>I hope I was clear in describing the environement.<\/p>\n<p>The issue is that I cannot display a title. I <em>think<\/em> it may be because the function the_content(); hasn&#8217;t executed yet, hence have not yet called anything from the tribe event plugin to fill the variables&#8230; but I could be wrong.<\/p>\n<p>Therefore : How do I display the Event Title into my single viewing template (&#8220;page-event.php&#8221;)?<\/p>\n","protected":false},"template":"","class_list":["post-1010674","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>the_title not displaying within page.php -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the_title-not-displaying-within-page-php\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"the_title not displaying within page.php -\" \/>\n<meta property=\"og:description\" content=\"Greetings I searched up the site and might have missed a thread on that, if so, excuse this duplicate. To set the context, I am using Divi (by Elegant Themes) theme. I have a simple custom &#8220;page-event.php&#8221; used to display The Events Calendar stuff (configured in Settings &gt;\u00a0Display &gt; Events template). This is mainly to [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the_title-not-displaying-within-page-php\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-10-02T18:45:40+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the_title-not-displaying-within-page-php\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the_title-not-displaying-within-page-php\/\",\"name\":\"the_title not displaying within page.php -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-10-01T21:35:35+00:00\",\"dateModified\":\"2015-10-02T18:45:40+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the_title-not-displaying-within-page-php\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the_title-not-displaying-within-page-php\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the_title-not-displaying-within-page-php\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Community Events\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/community-events\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"the_title not displaying within page.php\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"the_title not displaying within page.php -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the_title-not-displaying-within-page-php\/","og_locale":"en_US","og_type":"article","og_title":"the_title not displaying within page.php -","og_description":"Greetings I searched up the site and might have missed a thread on that, if so, excuse this duplicate. To set the context, I am using Divi (by Elegant Themes) theme. I have a simple custom &#8220;page-event.php&#8221; used to display The Events Calendar stuff (configured in Settings &gt;\u00a0Display &gt; Events template). This is mainly to [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the_title-not-displaying-within-page-php\/","article_modified_time":"2015-10-02T18:45:40+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the_title-not-displaying-within-page-php\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the_title-not-displaying-within-page-php\/","name":"the_title not displaying within page.php -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-10-01T21:35:35+00:00","dateModified":"2015-10-02T18:45:40+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the_title-not-displaying-within-page-php\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/the_title-not-displaying-within-page-php\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/the_title-not-displaying-within-page-php\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Community Events","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/community-events\/"},{"@type":"ListItem","position":5,"name":"the_title not displaying within page.php"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1010674","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1010674\/revisions"}],"predecessor-version":[{"id":1010876,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1010674\/revisions\/1010876"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1010674"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}