{"id":1966427,"date":"2025-08-17T21:48:11","date_gmt":"2025-08-18T01:48:11","guid":{"rendered":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/?p=1966427"},"modified":"2025-08-17T21:48:18","modified_gmt":"2025-08-18T01:48:18","slug":"how-to-display-the-event-author-in-the-events-calendar","status":"publish","type":"post","link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/how-to-display-the-event-author-in-the-events-calendar\/","title":{"rendered":"How to Display the Event Author in The Events Calendar"},"content":{"rendered":"\n<p>By default, The Events Calendar (TEC) plugin does not display the event author on the front end. However, with a small amount of custom code, you can show the author&#8217;s name and a link to their profile on both the <strong>Single Event page<\/strong> and the <strong>List View<\/strong> of your calendar. This is useful if you have multiple contributors or instructors and want to credit them on the event listings.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-display-author-on-the-single-event-page\">Display Author on the Single Event Page<\/h2>\n\n\n\n<p>You can show the event author at the bottom of the event description by adding a code snippet to your theme.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to <strong>Appearance \u2192 Theme File Editor<\/strong>, or use a plugin like <strong>Code Snippets<\/strong>.<\/li>\n\n\n\n<li>Add the following PHP code:<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nadd_action( &#039;tribe_events_single_event_after_the_content&#039;, &#039;show_event_author_name&#039; );\n\nfunction show_event_author_name() {\n    $author_id = get_the_author_meta( &#039;ID&#039; );\n    $author_name = get_the_author();\n    $author_url = get_author_posts_url( $author_id );\n\n    echo &#039;&lt;p class=&quot;event-author&quot;&gt;&lt;strong&gt;Event created by:&lt;\/strong&gt; &lt;a href=&quot;&#039; . esc_url( $author_url ) . &#039;&quot;&gt;&#039; . esc_html( $author_name ) . &#039;&lt;\/a&gt;&lt;\/p&gt;&#039;;\n}\n<\/pre><\/div>\n\n\n<p>This will display a line like this below:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"433\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/08\/Author-Display2-1024x433.png\" alt=\"\" class=\"wp-image-1966430\" style=\"border-width:1px\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/08\/Author-Display2-1024x433.png 1024w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/08\/Author-Display2-300x127.png 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/08\/Author-Display2-768x325.png 768w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/08\/Author-Display2.png 1056w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-display-author-in-the-list-view\">Display Author in the List View<\/h2>\n\n\n\n<p>The List View shows upcoming events in a vertical list. To add the author&#8217;s name there, you have two options.<\/p>\n\n\n\n<p><strong>Template Override<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Copy the file <code>\/wp-content\/plugins\/the-events-calendar\/src\/views\/v2\/list\/event\/title.php<\/code> and paste it to <code>\/wp-content\/themes\/your-theme\/tribe\/events\/v2\/list\/event\/title.php<\/code><\/li>\n\n\n\n<li>Open the copied file and add this snippet right after the event title code which is after line 31:<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;?php\n$author_id = get_the_author_meta( &#039;ID&#039; );\n$author_name = get_the_author();\n$author_url = get_author_posts_url( $author_id );\n?&gt;\n\n&lt;p class=&quot;event-author&quot;&gt;\n    &lt;strong&gt;By:&lt;\/strong&gt; &lt;a href=&quot;&lt;?php echo esc_url( $author_url ); ?&gt;&quot;&gt;&lt;?php echo esc_html( $author_name ); ?&gt;&lt;\/a&gt;\n&lt;\/p&gt;\n\n<\/pre><\/div>\n\n\n<p>This will add the author&#8217;s name in list view as shown below:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"930\" height=\"345\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/08\/Author-on-List.png\" alt=\"\" class=\"wp-image-1966434\" style=\"border-width:1px\" srcset=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/08\/Author-on-List.png 930w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/08\/Author-on-List-300x111.png 300w, https:\/\/images.theeventscalendar.com\/kb\/uploads\/2025\/08\/Author-on-List-768x285.png 768w\" sizes=\"auto, (max-width: 930px) 100vw, 930px\" \/><\/figure>\n\n\n\n<p><br><strong>Final Thoughts:<\/strong><br><br>Displaying the event author in The Events Calendar is a simple but effective way to give credit to your event creators, instructors, or organizers. While TEC does not include this feature out of the box, adding it is straightforward with either a quick code snippet or a template override. Once implemented, your events will not only provide essential details but also highlight the people behind them, giving your calendar a more personal and professional touch.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By default, The Events Calendar (TEC) plugin does not display the event author on the front end. However, with a small amount of custom code, you can show the author&#8217;s name and a link to their profile on both the Single Event page and the List View of your calendar. This is useful if you&#8230;<\/p>\n","protected":false},"author":48,"featured_media":1955565,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_swpsp_post_exclude":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"ep_exclude_from_search":false,"footnotes":""},"categories":[130,79,84],"tags":[25],"stellar-product-taxonomy":[161],"class_list":["post-1966427","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-advanced-post-manager","category-snippets","category-theming-overview","tag-customizations","stellar-product-taxonomy-the-events-calendar"],"acf":[],"taxonomy_info":{"category":[{"value":130,"label":"Managing Events"},{"value":79,"label":"Snippets"},{"value":84,"label":"Templating &amp; Layout"}],"post_tag":[{"value":25,"label":"Customizations"}],"stellar-product-taxonomy":[{"value":161,"label":"The Events Calendar"}]},"featured_image_src_large":["https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/02\/social-share-1024x538.png",1024,538,true],"author_info":{"display_name":"Paul Acido","author_link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/author\/paulacido\/"},"comment_info":0,"category_info":[{"term_id":130,"name":"Managing Events","slug":"advanced-post-manager","term_group":0,"term_taxonomy_id":130,"taxonomy":"category","description":"","parent":61,"count":44,"filter":"raw","term_order":"0","cat_ID":130,"category_count":44,"category_description":"","cat_name":"Managing Events","category_nicename":"advanced-post-manager","category_parent":61},{"term_id":79,"name":"Snippets","slug":"snippets","term_group":0,"term_taxonomy_id":79,"taxonomy":"category","description":"","parent":0,"count":136,"filter":"raw","term_order":"0","cat_ID":79,"category_count":136,"category_description":"","cat_name":"Snippets","category_nicename":"snippets","category_parent":0},{"term_id":84,"name":"Templating &amp; Layout","slug":"theming-overview","term_group":0,"term_taxonomy_id":84,"taxonomy":"category","description":"","parent":24,"count":59,"filter":"raw","term_order":"0","cat_ID":84,"category_count":59,"category_description":"","cat_name":"Templating &amp; Layout","category_nicename":"theming-overview","category_parent":24}],"tag_info":[{"term_id":25,"name":"Customizations","slug":"customizations","term_group":0,"term_taxonomy_id":25,"taxonomy":"post_tag","description":"","parent":0,"count":177,"filter":"raw","term_order":"0"}],"_links":{"self":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1966427","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/users\/48"}],"replies":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1966427"}],"version-history":[{"count":8,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1966427\/revisions"}],"predecessor-version":[{"id":1966439,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1966427\/revisions\/1966439"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media\/1955565"}],"wp:attachment":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=1966427"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1966427"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1966427"},{"taxonomy":"stellar-product-taxonomy","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/stellar-product-taxonomy?post=1966427"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}