{"id":1421730,"date":"2018-01-09T12:04:23","date_gmt":"2018-01-09T20:04:23","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/display-category-name-and-link-url-in-photo-view\/"},"modified":"2018-01-09T12:04:23","modified_gmt":"2018-01-09T20:04:23","slug":"display-category-name-and-link-url-in-photo-view","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/display-category-name-and-link-url-in-photo-view\/","title":{"rendered":"Display category name and link url in photo view"},"content":{"rendered":"<p>Hi &#8211; I have managed to customise the photo view, within my child theme, to change the order of the display and also to remove the excerpt:<br \/>\nhttps:\/\/www.tashmina.co.uk\/concerts\/photo\/<\/p>\n<p>I have also tried to add the category name with its link (but have not succeeded with the link part) as you will see.<br \/>\nThis is the thread I followed, but I realise the need here was slightly different (they did not need the link url). <\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"g41l0Fo2KS\"><p><a href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/display-just-category-name\/\">Display just category name<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;Display just category name&#8221; &#8212; \" src=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/display-just-category-name\/embed\/#?secret=UsjWvImWMW#?secret=g41l0Fo2KS\" data-secret=\"g41l0Fo2KS\" width=\"580\" height=\"327\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>What can I put in the single event file in order to display the category name as a clickable link (to the normal event category page) instead of purely text ? Also, I would ideally like to only show the primary category instead of all of them.<\/p>\n<p>I have tried everything I can (I do not write code so it is a matter of following examples) and have got so close but&#8230;.<\/p>\n<p>Incidentally I did try using tribe_get_categories instead of tribe_get_text_categories, but then you get a label as well; also the list of categories are presented in a funny list with bullets&#8230;<\/p>\n<p>Finally If I wanted to add a line to show tags in the same way, can you help me?<\/p>\n<p>Fingers crossed that having got this far you can help me? I have searched and searched&#8230;!  Thanks!<\/p>\n","protected":false},"template":"","class_list":["post-1421730","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>Display category name and link url in photo view -<\/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\/display-category-name-and-link-url-in-photo-view\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Display category name and link url in photo view -\" \/>\n<meta property=\"og:description\" content=\"Hi &#8211; I have managed to customise the photo view, within my child theme, to change the order of the display and also to remove the excerpt: https:\/\/www.tashmina.co.uk\/concerts\/photo\/ I have also tried to add the category name with its link (but have not succeeded with the link part) as you will see. This is the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/display-category-name-and-link-url-in-photo-view\/\" \/>\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\/display-category-name-and-link-url-in-photo-view\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/display-category-name-and-link-url-in-photo-view\/\",\"name\":\"Display category name and link url in photo view -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2018-01-09T20:04:23+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/display-category-name-and-link-url-in-photo-view\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/display-category-name-and-link-url-in-photo-view\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/display-category-name-and-link-url-in-photo-view\/#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\":\"Display category name and link url in photo view\"}]},{\"@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":"Display category name and link url in photo view -","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\/display-category-name-and-link-url-in-photo-view\/","og_locale":"en_US","og_type":"article","og_title":"Display category name and link url in photo view -","og_description":"Hi &#8211; I have managed to customise the photo view, within my child theme, to change the order of the display and also to remove the excerpt: https:\/\/www.tashmina.co.uk\/concerts\/photo\/ I have also tried to add the category name with its link (but have not succeeded with the link part) as you will see. This is the [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/display-category-name-and-link-url-in-photo-view\/","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\/display-category-name-and-link-url-in-photo-view\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/display-category-name-and-link-url-in-photo-view\/","name":"Display category name and link url in photo view -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2018-01-09T20:04:23+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/display-category-name-and-link-url-in-photo-view\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/display-category-name-and-link-url-in-photo-view\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/display-category-name-and-link-url-in-photo-view\/#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":"Display category name and link url in photo view"}]},{"@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\/1421730","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":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1421730\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1421730"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}