{"id":940270,"date":"2015-02-05T09:09:03","date_gmt":"2015-02-05T17:09:03","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/calling-custom-field-taxonomy\/"},"modified":"2015-02-19T17:54:32","modified_gmt":"2015-02-20T01:54:32","slug":"calling-custom-field-taxonomy","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/calling-custom-field-taxonomy\/","title":{"rendered":"Calling Custom Field \/ Taxonomy"},"content":{"rendered":"<p>Hello there, <\/p>\n<p>At my job, I inherited a WordPress install with a custom Event Calendar in place.<\/p>\n<p>We have our Events organized in 2 categories, as well as 15 industries. Which Have been setup as custom taxonomy.<\/p>\n<p>The individual I replaced created a custom shortcode function here:<\/p>\n<p><a href=\"http:\/\/pastebin.com\/yTfEz81D\" target=\"_blank\">http:\/\/pastebin.com\/yTfEz81D<\/a><\/p>\n<p>All I want to do is modify this one function.<\/p>\n<pre><code>if ($link == &#039;yes&#039;) {\n if (has_term( &#039;webinars&#039;, &#039;tribe_events_cat&#039;, $eventpost-&gt;ID )) { \n $output .= &#039;&lt;div class=&quot;eventlist-more-link&quot;&gt;&lt;a href=&quot;\/guidance\/latest-webinars\/&quot;&gt;More Webinars&amp;nbsp; &lt;i class=&quot;fa fa-arrow-circle-right&quot;&gt;&lt;\/i&gt; &lt;\/a&gt; &lt;\/div&gt;&#039;; } elseif (has_term( &#039;conferences&#039;, &#039;tribe_events_cat&#039;, $eventpost-&gt;ID )) {   \n $output .= &#039;&lt;div class=&quot;eventlist-more-link&quot; &gt;&lt;a href=&quot;\/events\/upcoming\/?tribe_eventcategory=70&quot;&gt;More Conferences&amp;nbsp; &lt;i class=&quot;fa fa-arrow-circle-right&quot;&gt;&lt;\/i&gt; &lt;\/a&gt; &lt;\/div&gt;&#039;;}\n \n else {\n\t }\n\t\t\t\t\t\t\n}<\/code><\/pre>\n<p>As you can see this function outputs &#8220;More Conferences&#8221; which links to the <strong>CATEGORY<\/strong> of the post.<\/p>\n<p>I want it to link to the <strong>INDUSTRY<\/strong> taxonomy instead.<\/p>\n<p>For example instead of linking to &#8220;\/events\/upcoming\/?tribe_eventcategory=70&#8221; it would dynamically link to the industry that it has been assigned with.<\/p>\n<p>&#8220;\/events\/list\/?tribe_event_industry=88&#8221;<\/p>\n<p>Again, I don&#8217;t want to link to conferences in this function. Instead I want to link to a custom taxonomy we created called Industries.<\/p>\n<p>As you can see from the pastebin link, $event_industry is called at the start of the document.<\/p>\n<p>I tried calling it without sucess although, this isn&#8217;t my area of expertise.<\/p>\n<p>Please help. Thanks!<\/p>\n","protected":false},"template":"","class_list":["post-940270","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>Calling Custom Field \/ Taxonomy -<\/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\/calling-custom-field-taxonomy\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Calling Custom Field \/ Taxonomy -\" \/>\n<meta property=\"og:description\" content=\"Hello there, At my job, I inherited a WordPress install with a custom Event Calendar in place. We have our Events organized in 2 categories, as well as 15 industries. Which Have been setup as custom taxonomy. The individual I replaced created a custom shortcode function here: http:\/\/pastebin.com\/yTfEz81D All I want to do is modify [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/calling-custom-field-taxonomy\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-02-20T01:54:32+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=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/calling-custom-field-taxonomy\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/calling-custom-field-taxonomy\/\",\"name\":\"Calling Custom Field \/ Taxonomy -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-02-05T17:09:03+00:00\",\"dateModified\":\"2015-02-20T01:54:32+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/calling-custom-field-taxonomy\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/calling-custom-field-taxonomy\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/calling-custom-field-taxonomy\/#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\":\"Calling Custom Field \/ Taxonomy\"}]},{\"@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":"Calling Custom Field \/ Taxonomy -","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\/calling-custom-field-taxonomy\/","og_locale":"en_US","og_type":"article","og_title":"Calling Custom Field \/ Taxonomy -","og_description":"Hello there, At my job, I inherited a WordPress install with a custom Event Calendar in place. We have our Events organized in 2 categories, as well as 15 industries. Which Have been setup as custom taxonomy. The individual I replaced created a custom shortcode function here: http:\/\/pastebin.com\/yTfEz81D All I want to do is modify [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/calling-custom-field-taxonomy\/","article_modified_time":"2015-02-20T01:54:32+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/calling-custom-field-taxonomy\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/calling-custom-field-taxonomy\/","name":"Calling Custom Field \/ Taxonomy -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-02-05T17:09:03+00:00","dateModified":"2015-02-20T01:54:32+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/calling-custom-field-taxonomy\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/calling-custom-field-taxonomy\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/calling-custom-field-taxonomy\/#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":"Calling Custom Field \/ Taxonomy"}]},{"@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\/940270","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\/940270\/revisions"}],"predecessor-version":[{"id":940277,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/940270\/revisions\/940277"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=940270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}