{"id":966630,"date":"2015-06-02T08:18:50","date_gmt":"2015-06-02T15:18:50","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/x-theme-ecp-integration-issues-no-titlebreadcrumbs\/"},"modified":"2015-06-29T07:38:29","modified_gmt":"2015-06-29T14:38:29","slug":"x-theme-ecp-integration-issues-no-titlebreadcrumbs","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/x-theme-ecp-integration-issues-no-titlebreadcrumbs\/","title":{"rendered":"X-theme + ECP integration issues (no title\/breadcrumbs)"},"content":{"rendered":"<p>I have a thread started with the theme developers but they have helped as much as they can and state they do not support 3rd party plug-ins.<\/p>\n<p>Thread link:  https:\/\/theme.co\/community\/forums\/topic\/the-events-calendar-integration-issue\/#post-289367<\/p>\n<p>My primary issue is that I do not have titles\/breadcrumbs appearing on my calendar pages. I assume this is due to the way that ECP creates those pages in combination on how titles\/breadcrumbs are created in x-theme.<\/p>\n<blockquote><p>The event manager plugin is not really integrated to the theme. X theme\u2019s breadcrumbs is usually integrated to the common post types such as post, page, attachment, custom types and etc. And post types are standard feature of wordpress.<\/p>\n<p>If you will check the source code of this page http:\/\/ehs.designerken.com\/events\/month\/ , there is no indication of what type it is. It\u2019s not even archive, or category, page, post, or etc. And X\u2019s breadcrumb is only configured to standard pages.<\/p>\n<p>What you could do is ask the plugin author for the code that is need for integration. You can simply put your integration code within this code :<\/p><\/blockquote>\n<p>I guess I could as for a way to add in custom post types and add your post type into theirs if possible.<\/p>\n<p>They did supply me with the code for the function of their breadcrumbs that I guess can be changed to include the necessary code for ECP.<\/p>\n<pre><code>\/\/ Breadcrumbs\n\/\/ =============================================================================\n\nif ( ! function_exists( &#039;x_breadcrumbs&#039; ) ) :\n  function x_breadcrumbs() {\n\n    if ( x_get_option( &#039;x_breadcrumb_display&#039;, &#039;1&#039; ) ) {\n\n      GLOBAL $post;\n\n      $is_ltr         = ! is_rtl();\n      $stack          = x_get_stack();\n      $delimiter      = x_get_breadcrumb_delimiter();\n      $home_text      = x_get_breadcrumb_home_text();\n      $home_link      = home_url();\n      $current_before = x_get_breadcrumb_current_before();\n      $current_after  = x_get_breadcrumb_current_after();\n      $page_title     = get_the_title();\n      $blog_title     = get_the_title( get_option( &#039;page_for_posts&#039;, true ) );\n\n      if ( ! is_404() ) {\n        $post_parent = $post-&gt;post_parent;\n      } else {\n        $post_parent = &#039;&#039;;\n      }\n\n      if ( X_WOOCOMMERCE_IS_ACTIVE ) {\n        $shop_url   = x_get_shop_link();\n        $shop_title = x_get_option( &#039;x_&#039; . $stack . &#039;_shop_title&#039;, __( &#039;The Shop&#039;, &#039;__x__&#039; ) );\n        $shop_link  = &#039;&lt;a href=&quot;&#039;. $shop_url .&#039;&quot;&gt;&#039; . $shop_title . &#039;&lt;\/a&gt;&#039;;\n      }\n\n      echo &#039;&lt;div class=&quot;x-breadcrumbs&quot;&gt;&lt;a href=&quot;&#039; . $home_link . &#039;&quot;&gt;&#039; . $home_text . &#039;&lt;\/a&gt;&#039; . $delimiter;\n\n        if ( is_home() ) {\n\n          echo $current_before . $blog_title . $current_after;\n\n        } elseif ( is_category() ) {\n\n          $the_cat = get_category( get_query_var( &#039;cat&#039; ), false );\n          if ( $the_cat-&gt;parent != 0 ) echo get_category_parents( $the_cat-&gt;parent, TRUE, $delimiter );\n          echo $current_before . single_cat_title( &#039;&#039;, false ) . $current_after;\n\n        } elseif ( x_is_product_category() ) {\n\n          if ( $is_ltr ) {\n            echo $shop_link . $delimiter . $current_before . single_cat_title( &#039;&#039;, false ) . $current_after;\n          } else {\n            echo $current_before . single_cat_title( &#039;&#039;, false ) . $current_after . $delimiter . $shop_link;\n          }\n\n        } elseif ( x_is_product_tag() ) {\n\n          if ( $is_ltr ) {\n            echo $shop_link . $delimiter . $current_before . single_tag_title( &#039;&#039;, false ) . $current_after;\n          } else {\n            echo $current_before . single_tag_title( &#039;&#039;, false ) . $current_after . $delimiter . $shop_link;\n          }\n\n        } elseif ( is_search() ) {\n\n          echo $current_before . __( &#039;Search Results for &#039;, &#039;__x__&#039; ) . &#039;\u201c&#039; . get_search_query() . &#039;\u201d&#039; . $current_after;\n\n        } elseif ( is_singular( &#039;post&#039; ) ) {\n\n          if ( get_option( &#039;page_for_posts&#039; ) == is_front_page() ) {\n            echo $current_before . $page_title . $current_after;\n          } else {\n            if ( $is_ltr ) {\n              echo &#039;&lt;a href=&quot;&#039; . get_permalink( get_option( &#039;page_for_posts&#039; ) ) . &#039;&quot;&gt;&#039; . $blog_title . &#039;&lt;\/a&gt;&#039; . $delimiter . $current_before . $page_title . $current_after;\n            } else {\n              echo $current_before . $page_title . $current_after . $delimiter . &#039;&lt;a href=&quot;&#039; . get_permalink( get_option( &#039;page_for_posts&#039; ) ) . &#039;&quot;&gt;&#039; . $blog_title . &#039;&lt;\/a&gt;&#039;;\n            }\n          }\n\n        } elseif ( x_is_portfolio() ) {\n\n          echo $current_before . get_the_title() . $current_after;\n\n        } elseif ( x_is_portfolio_item() ) {\n\n          $link  = x_get_parent_portfolio_link();\n          $title = x_get_parent_portfolio_title();\n\n          if ( $is_ltr ) {\n            echo &#039;&lt;a href=&quot;&#039; . $link . &#039;&quot;&gt;&#039; . $title . &#039;&lt;\/a&gt;&#039; . $delimiter . $current_before . $page_title . $current_after;\n          } else {\n            echo $current_before . $page_title . $current_after . $delimiter . &#039;&lt;a href=&quot;&#039; . $link . &#039;&quot;&gt;&#039; . $title . &#039;&lt;\/a&gt;&#039;;\n          }\n\n        } elseif ( x_is_product() ) {\n\n          if ( $is_ltr ) {\n            echo $shop_link . $delimiter . $current_before . $page_title . $current_after;\n          } else {\n            echo $current_before . $page_title . $current_after . $delimiter . $shop_link;\n          }\n\n        } elseif ( x_is_buddypress() ) {\n\n          if ( bp_is_group() ) {\n            echo &#039;&lt;a href=&quot;&#039; . bp_get_groups_directory_permalink() . &#039;&quot;&gt;&#039; . x_get_option( &#039;x_buddypress_groups_title&#039;, __( &#039;Groups&#039;, &#039;__x__&#039; ) ) . &#039;&lt;\/a&gt;&#039; . $delimiter . $current_before . x_buddypress_get_the_title() . $current_after;\n          } elseif ( bp_is_user() ) {\n            echo &#039;&lt;a href=&quot;&#039; . bp_get_members_directory_permalink() . &#039;&quot;&gt;&#039; . x_get_option( &#039;x_buddypress_members_title&#039;, __( &#039;Members&#039;, &#039;__x__&#039; ) ) . &#039;&lt;\/a&gt;&#039; . $delimiter . $current_before . x_buddypress_get_the_title() . $current_after;\n          } else {\n            echo $current_before . x_buddypress_get_the_title() . $current_after;\n          }\n\n        } elseif ( x_is_bbpress() ) {\n\n          remove_filter( &#039;bbp_no_breadcrumb&#039;, &#039;__return_true&#039; );\n\n          if ( bbp_is_forum_archive() ) {\n            echo $current_before . bbp_get_forum_archive_title() . $current_after;\n          } else {\n            echo bbp_get_breadcrumb();\n          }\n\n          add_filter( &#039;bbp_no_breadcrumb&#039;, &#039;__return_true&#039; );\n\n        } elseif ( is_page() &amp;&amp; ! $post_parent ) {\n\n          echo $current_before . $page_title . $current_after;\n\n        } elseif ( is_page() &amp;&amp; $post_parent ) {\n\n          $parent_id   = $post_parent;\n          $breadcrumbs = array();\n\n          if ( is_rtl() ) {\n            echo $current_before . $page_title . $current_after . $delimiter;\n          }\n\n          while ( $parent_id ) {\n            $page          = get_page( $parent_id );\n            $breadcrumbs[] = &#039;&lt;a href=&quot;&#039; . get_permalink( $page-&gt;ID ) . &#039;&quot;&gt;&#039; . get_the_title( $page-&gt;ID ) . &#039;&lt;\/a&gt;&#039;;\n            $parent_id     = $page-&gt;post_parent;\n          }\n\n          if ( $is_ltr ) {\n            $breadcrumbs = array_reverse( $breadcrumbs );\n          }\n\n          for ( $i = 0; $i &lt; count( $breadcrumbs ); $i++ ) {\n            echo $breadcrumbs[$i];\n            if ( $i != count( $breadcrumbs ) -1 ) echo $delimiter;\n          }\n\n          if ( $is_ltr ) {\n            echo $delimiter . $current_before . $page_title . $current_after;\n          }\n\n        } elseif ( is_tag() ) {\n\n          echo $current_before . single_tag_title( &#039;&#039;, false ) . $current_after;\n\n        } elseif ( is_author() ) {\n\n          GLOBAL $author;\n          $userdata = get_userdata( $author );\n          echo $current_before . __( &#039;Posts by &#039;, &#039;__x__&#039; ) . &#039;\u201c&#039; . $userdata-&gt;display_name . $current_after . &#039;\u201d&#039;;\n\n        } elseif ( is_404() ) {\n\n          echo $current_before . __( &#039;404 (Page Not Found)&#039;, &#039;__x__&#039; ) . $current_after;\n\n        } elseif ( is_archive() ) {\n\n          if ( x_is_shop() ) {\n            echo $current_before . $shop_title . $current_after;\n          } else {\n            echo $current_before . __( &#039;Archives &#039;, &#039;__x__&#039; ) . $current_after;\n          }\n\n        }\n\n      echo &#039;&lt;\/div&gt;&#039;;\n\n    }\n\n  }\nendif;<\/code><\/pre>\n<p>That however still leads me with the issue of the Title. <\/p>\n<p>Any luck with providing the needed code for the breadcrumbs and title integration?<\/p>\n","protected":false},"template":"","class_list":["post-966630","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>X-theme + ECP integration issues (no title\/breadcrumbs) -<\/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\/x-theme-ecp-integration-issues-no-titlebreadcrumbs\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"X-theme + ECP integration issues (no title\/breadcrumbs) -\" \/>\n<meta property=\"og:description\" content=\"I have a thread started with the theme developers but they have helped as much as they can and state they do not support 3rd party plug-ins. Thread link: https:\/\/theme.co\/community\/forums\/topic\/the-events-calendar-integration-issue\/#post-289367 My primary issue is that I do not have titles\/breadcrumbs appearing on my calendar pages. I assume this is due to the way that ECP [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/x-theme-ecp-integration-issues-no-titlebreadcrumbs\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-06-29T14:38:29+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=\"5 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\/x-theme-ecp-integration-issues-no-titlebreadcrumbs\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/x-theme-ecp-integration-issues-no-titlebreadcrumbs\/\",\"name\":\"X-theme + ECP integration issues (no title\/breadcrumbs) -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-06-02T15:18:50+00:00\",\"dateModified\":\"2015-06-29T14:38:29+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/x-theme-ecp-integration-issues-no-titlebreadcrumbs\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/x-theme-ecp-integration-issues-no-titlebreadcrumbs\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/x-theme-ecp-integration-issues-no-titlebreadcrumbs\/#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\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"X-theme + ECP integration issues (no title\/breadcrumbs)\"}]},{\"@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":"X-theme + ECP integration issues (no title\/breadcrumbs) -","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\/x-theme-ecp-integration-issues-no-titlebreadcrumbs\/","og_locale":"en_US","og_type":"article","og_title":"X-theme + ECP integration issues (no title\/breadcrumbs) -","og_description":"I have a thread started with the theme developers but they have helped as much as they can and state they do not support 3rd party plug-ins. Thread link: https:\/\/theme.co\/community\/forums\/topic\/the-events-calendar-integration-issue\/#post-289367 My primary issue is that I do not have titles\/breadcrumbs appearing on my calendar pages. I assume this is due to the way that ECP [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/x-theme-ecp-integration-issues-no-titlebreadcrumbs\/","article_modified_time":"2015-06-29T14:38:29+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/x-theme-ecp-integration-issues-no-titlebreadcrumbs\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/x-theme-ecp-integration-issues-no-titlebreadcrumbs\/","name":"X-theme + ECP integration issues (no title\/breadcrumbs) -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-06-02T15:18:50+00:00","dateModified":"2015-06-29T14:38:29+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/x-theme-ecp-integration-issues-no-titlebreadcrumbs\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/x-theme-ecp-integration-issues-no-titlebreadcrumbs\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/x-theme-ecp-integration-issues-no-titlebreadcrumbs\/#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":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"X-theme + ECP integration issues (no title\/breadcrumbs)"}]},{"@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\/966630","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\/966630\/revisions"}],"predecessor-version":[{"id":966855,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/966630\/revisions\/966855"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=966630"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}