{"id":986512,"date":"2015-07-14T21:36:15","date_gmt":"2015-07-15T04:36:15","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/sort-alphabetically-change-title\/"},"modified":"2015-08-04T07:05:03","modified_gmt":"2015-08-04T14:05:03","slug":"sort-alphabetically-change-title","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/sort-alphabetically-change-title\/","title":{"rendered":"SORT ALPHABETICALLY + CHANGE TITLE"},"content":{"rendered":"<p>Hi <\/p>\n<p>I have searched through the forums for answers but no luck. Two questions:<\/p>\n<p>1. I want to use this snippet (it&#8217;s working perfectly for list view- thanx;) for Photo view- I&#8217;ve just switched list for photo to no avail&#8230;any ideas:<br \/>\n\/*<br \/>\n* The Events Calender &#8211; Custom Orderby Events in List View ByTitle<br \/>\n* http:\/\/codex.wordpress.org\/Class_Reference\/WP_Query#Order_.26_Orderby_Parameters<br \/>\n*\/<br \/>\nadd_filter( &#8216;pre_get_posts&#8217;, &#8216;tribe_change_event_order_list_view&#8217;, 99 );<br \/>\nfunction tribe_change_event_order_list_view( $query ) {<\/p>\n<p>\tif ( tribe_is_past() || tribe_is_upcoming() ) {<br \/>\n\t\t$query-&gt;set( &#8216;orderby&#8217;, &#8216;title&#8217; );<br \/>\n\t\t$query-&gt;set( &#8216;order&#8217;, &#8216;ASC&#8217; );<br \/>\n\t}<br \/>\n\treturn $query;<br \/>\n}<\/p>\n<p>and 2. I have tried exchanging: &lt;?php echo tribe_get_events_title() ?&gt; to my preferred title in list\/content.php but it&#8217;s not working. Is there a snippet I can include in functions.php that will rename my events page from EVENTS to something else? I&#8217;ve tried a few but no luck either.<\/p>\n<p>Many thanks.<\/p>\n","protected":false},"template":"","class_list":["post-986512","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>SORT ALPHABETICALLY + CHANGE TITLE -<\/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\/sort-alphabetically-change-title\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SORT ALPHABETICALLY + CHANGE TITLE -\" \/>\n<meta property=\"og:description\" content=\"Hi I have searched through the forums for answers but no luck. Two questions: 1. I want to use this snippet (it&#8217;s working perfectly for list view- thanx;) for Photo view- I&#8217;ve just switched list for photo to no avail&#8230;any ideas: \/* * The Events Calender &#8211; Custom Orderby Events in List View ByTitle * [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/sort-alphabetically-change-title\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-08-04T14:05:03+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\/sort-alphabetically-change-title\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/sort-alphabetically-change-title\/\",\"name\":\"SORT ALPHABETICALLY + CHANGE TITLE -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-07-15T04:36:15+00:00\",\"dateModified\":\"2015-08-04T14:05:03+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/sort-alphabetically-change-title\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/sort-alphabetically-change-title\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/sort-alphabetically-change-title\/#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\":\"SORT ALPHABETICALLY + CHANGE TITLE\"}]},{\"@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":"SORT ALPHABETICALLY + CHANGE TITLE -","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\/sort-alphabetically-change-title\/","og_locale":"en_US","og_type":"article","og_title":"SORT ALPHABETICALLY + CHANGE TITLE -","og_description":"Hi I have searched through the forums for answers but no luck. Two questions: 1. I want to use this snippet (it&#8217;s working perfectly for list view- thanx;) for Photo view- I&#8217;ve just switched list for photo to no avail&#8230;any ideas: \/* * The Events Calender &#8211; Custom Orderby Events in List View ByTitle * [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/sort-alphabetically-change-title\/","article_modified_time":"2015-08-04T14:05:03+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\/sort-alphabetically-change-title\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/sort-alphabetically-change-title\/","name":"SORT ALPHABETICALLY + CHANGE TITLE -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-07-15T04:36:15+00:00","dateModified":"2015-08-04T14:05:03+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/sort-alphabetically-change-title\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/sort-alphabetically-change-title\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/sort-alphabetically-change-title\/#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":"SORT ALPHABETICALLY + CHANGE TITLE"}]},{"@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\/986512","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\/986512\/revisions"}],"predecessor-version":[{"id":986660,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/986512\/revisions\/986660"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=986512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}