{"id":971661,"date":"2015-06-20T15:44:15","date_gmt":"2015-06-20T22:44:15","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-list-page-source-code-on-frontend\/"},"modified":"2015-06-21T18:09:41","modified_gmt":"2015-06-22T01:09:41","slug":"community-events-list-page-source-code-on-frontend","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-list-page-source-code-on-frontend\/","title":{"rendered":"community events list page &#8211; source code on frontend"},"content":{"rendered":"<p>Hello Team,<\/p>\n<p>After the 3.10 update my &#8220;community events list page&#8221; page appears to show some source code. I&#8217;m not a developer by far and can&#8217;t really say if this is due to the update or anything else on my page. I&#8217;m lost and would appreciate your help:<\/p>\n<p>Source code displayed:<br \/>\n&#8220;class Tooltips_Walker extends Walker_Nav_Menu { function start_el(&amp;$output, $item, $depth, $args) { $classes = empty ( $item-&gt;classes ) ? array () : (array) $item-&gt;classes; $class_names = join( &#8216; &#8216; , apply_filters( &#8216;nav_menu_css_class&#8217; , array_filter( $classes ), $item ) ); ! empty ( $class_names ) and $class_names = &#8216; class=&#8221;&#8216;. esc_attr( $class_names ) . &#8216;&#8221;&#8216;; $attributes = &#8221;; if(strstr($class_names, &#8216;tooltips&#8217;)) { $attributes = &#8216; class=&#8221;tooltips&#8221;&#8216;; } $class_names = str_replace(&#8216;tooltips&#8217;, &#8221;, $class_names); $output .= &#8221;<br \/>\n&#8220;; ! empty( $item-&gt;attr_title ) and $attributes .= &#8216; title=&#8221;&#8216; . esc_attr( $item-&gt;attr_title ) .'&#8221;&#8216;; ! empty( $item-&gt;target ) and $attributes .= &#8216; target=&#8221;&#8216; . esc_attr( $item-&gt;target ) .'&#8221;&#8216;; ! empty( $item-&gt;xfn ) and $attributes .= &#8216; rel=&#8221;&#8216; . esc_attr( $item-&gt;xfn ) .'&#8221;&#8216;; ! empty( $item-&gt;url ) and $attributes .= &#8216; href=&#8221;&#8216; . esc_attr( $item-&gt;url ) .'&#8221;&#8216;; \/\/ insert description for top level elements only \/\/ you may change this $description = ( ! empty ( $item-&gt;description ) and 0 == $depth ) ? esc_attr( $item-&gt;description ) : &#8221;; $title = apply_filters( &#8216;the_title&#8217;, $item-&gt;title, $item-&gt;ID ); $item_output = $args-&gt;before . &#8220;&#8221; . $args-&gt;link_before . $title . &#8216; &#8216; . $args-&gt;link_after . $args-&gt;after; \/\/ Since $output is called by reference we don&#8217;t need to return anything. $output .= apply_filters( &#8216;walker_nav_menu_start_el&#8217; , $item_output , $item , $depth , $args ); } } function get_avatar_url($author_id, $size){ $get_avatar = get_avatar( $author_id, $size ); preg_match(&#8220;\/src='(.*?)&#8217;\/i&#8221;, $get_avatar, $matches); return ( $matches[1] ); }&#8221;<\/p>\n<p>After switching themes I&#8217;ve seen that is related with the theme. Probably my custom header.php. However, it worked before the 3.10 update. <\/p>\n<p>Hope you have an idea!<\/p>\n<p>Best wishes,<br \/>\nJacob<\/p>\n","protected":false},"template":"","class_list":["post-971661","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>community events list page - source code on frontend -<\/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\/community-events-list-page-source-code-on-frontend\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"community events list page - source code on frontend -\" \/>\n<meta property=\"og:description\" content=\"Hello Team, After the 3.10 update my &#8220;community events list page&#8221; page appears to show some source code. I&#8217;m not a developer by far and can&#8217;t really say if this is due to the update or anything else on my page. I&#8217;m lost and would appreciate your help: Source code displayed: &#8220;class Tooltips_Walker extends Walker_Nav_Menu [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-list-page-source-code-on-frontend\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-06-22T01:09:41+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\/community-events-list-page-source-code-on-frontend\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-list-page-source-code-on-frontend\/\",\"name\":\"community events list page - source code on frontend -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-06-20T22:44:15+00:00\",\"dateModified\":\"2015-06-22T01:09:41+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-list-page-source-code-on-frontend\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-list-page-source-code-on-frontend\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-list-page-source-code-on-frontend\/#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\":\"community events list page &#8211; source code on frontend\"}]},{\"@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":"community events list page - source code on frontend -","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\/community-events-list-page-source-code-on-frontend\/","og_locale":"en_US","og_type":"article","og_title":"community events list page - source code on frontend -","og_description":"Hello Team, After the 3.10 update my &#8220;community events list page&#8221; page appears to show some source code. I&#8217;m not a developer by far and can&#8217;t really say if this is due to the update or anything else on my page. I&#8217;m lost and would appreciate your help: Source code displayed: &#8220;class Tooltips_Walker extends Walker_Nav_Menu [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-list-page-source-code-on-frontend\/","article_modified_time":"2015-06-22T01:09:41+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\/community-events-list-page-source-code-on-frontend\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-list-page-source-code-on-frontend\/","name":"community events list page - source code on frontend -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-06-20T22:44:15+00:00","dateModified":"2015-06-22T01:09:41+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-list-page-source-code-on-frontend\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-list-page-source-code-on-frontend\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-list-page-source-code-on-frontend\/#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":"community events list page &#8211; source code on frontend"}]},{"@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\/971661","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\/971661\/revisions"}],"predecessor-version":[{"id":971686,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/971661\/revisions\/971686"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=971661"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}