{"id":1946795,"date":"2020-03-25T06:13:18","date_gmt":"2020-03-25T10:13:18","guid":{"rendered":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/?post_type=tribe-knowledgebase&#038;p=1946795"},"modified":"2022-02-11T04:36:18","modified_gmt":"2022-02-11T09:36:18","slug":"inserting-calendar-content-into-posts-or-pages","status":"publish","type":"post","link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/inserting-calendar-content-into-posts-or-pages\/","title":{"rendered":"Inserting Calendar Content into Posts or Pages"},"content":{"rendered":"\n<p>While Events Calendar Pro provides some calendar widgets that you can add to your site&#8217;s sidebars and such, sometimes you don&#8217;t <em>want<\/em> the calendar content in a sidebar\u2014you want it squarely in the <em>content<\/em> of a post or page directly.<\/p>\n\n\n\n<p>With The Events Calendar family of plugins, you have <strong>several methods<\/strong> for accomplishing the insertion of event content directly into posts and pages:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"#calendar-views\">Inserting Full Calendar Views<\/a><\/li><li><a href=\"#widget-views\">Inserting Calendar Widget Views<\/a><\/li><li><a href=\"#single-events\">Embedding Single Events<\/a><\/li><li><a href=\"https:\/\/staging.theeventscalendar.com\/knowledgebase\/k\/community-events-shortcodes\/\">Inserting Community Events content<\/a><\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"calendar-views\">Inserting Full Calendar Views<\/h3>\n\n\n\n<p>You can insert complete calendar views into any post, page, or other post types that allow for shortcodes to be used. This is possible by using the [tribe_events] shortcode. Head over to <a aria-label=\" (opens in a new tab)\" href=\"https:\/\/staging.theeventscalendar.com\/knowledgebase\/k\/embedding-calendar-views-with-the-tribe_events-shortcode\/\" target=\"_blank\" rel=\"noreferrer noopener\">the official [tribe_events] shortcode guide<\/a> to learn how to use it.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"widget-views\">Inserting Calendar Widget Views<\/h3>\n\n\n\n<p>The &#8220;Mini Calendar&#8221; widget provides a miniature calendar view that, while not <em>as<\/em> robust as the true &#8220;Month View&#8221; of the main calendar, can still be quite useful. To insert a miniature calendar view into post or page content, you can use the following shortcode provided by Events Calendar Pro:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;tribe_mini_calendar]\n<\/pre><\/div>\n\n\n<p>Adding this to a page or post (or <strong>any<\/strong> custom post type that parses shortcodes) will embed the calendar widget inline, right within the content. This screenshot shows a mini calendar right in the midst of post content:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2015\/03\/Screen-Shot-2016-05-28-at-1.24.07-PM.png\"><img decoding=\"async\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2021\/05\/Screen-Shot-2021-05-04-at-9.57.25-AM.png\" alt=\"Inserting calendar content into a WordPress post with a widget\" class=\"wp-image-1949636\"\/><\/a><\/figure>\n\n\n\n<p>\nThis mini calendar is generated by a shortcode in post content.\n<\/p>\n\n\n\n<p>You&nbsp;can even apply filters to focus on specific categories and tags, just as you&nbsp;might do with the widget itself:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;tribe_mini_calendar category=&quot;black-tie-events&quot; tag=&quot;members-only&quot;]\n<\/pre><\/div>\n\n\n<p>You can apply filters in many different ways, in fact. <a href=\"https:\/\/staging.theeventscalendar.com\/knowledgebase\/k\/events-calendar-pro-widget-shortcodes-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">Click here to learn more about all of the [tribe_mini_calendar] shortcode options<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"single-events\">Single Events<\/h3>\n\n\n\n<p>As of WordPress 4.4 and The Events Calendar 4.2, you can embed single events into any WordPress post type&#8217;s content. (Please note that this will <em>not<\/em> work unless you are running WordPress version 4.4 or higher.)<\/p>\n\n\n\n<p>Doing this is very easy: you simply head to the event that you want to embed elsewhere; copy its permalink URL, and then paste this URL into the content of the post or page inside of which you want the event to be inserted.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2021\/05\/chrome-capture-1.gif\" alt=\"\" class=\"wp-image-1949639\" width=\"479\" height=\"313\"\/><\/figure><\/div>\n\n\n\n<p>The embed will look something like this, dependent upon your theme&#8217;s styles to some degree of course:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2015\/03\/Screen-Shot-2016-05-28-at-1.29.15-PM.png\"><img decoding=\"async\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2021\/05\/chrome-capture2.png\" alt=\"\" class=\"wp-image-1949640\"\/><\/a><\/figure>\n\n\n\n<p>\nAn example of an event embedded in post or page content.\n\n<\/p>\n\n\n\n<p>Do you want to customize what event details to display, or in what order these details appear? See our guide: <a href=\"https:\/\/staging.theeventscalendar.com\/knowledgebase\/k\/embedding-single-events-with-the-tribe_event_inline-shortcode\/\">Embedding Single Events with the [tribe_event_inline] Shortcode<\/a><\/p>\n\n\n\n<p>If you are using a version of WordPress below 4.4, or a version of The Events Calendar below 4.2, then the above embed features will not be supported.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"CE\">Inserting Community Events content<\/h3>\n\n\n\n<p>You might want to provide front-end access to settings and tools to logged-in approved users, or even use one of your own pages or posts instead of what Community Events provides out of the box.\u00a0With <a href=\"https:\/\/staging.theeventscalendar.com\/knowledgebase\/k\/community-events-shortcodes\/\" target=\"_blank\" rel=\"noreferrer noopener\">Community Events shortcodes<\/a>, you can embed options\u00a0to\u00a0<a href=\"https:\/\/support.theeventscalendar.com\/238593-Accessing-and-Linking-to-Community-Events-Pages\" target=\"_blank\" rel=\"noreferrer noopener\">submit<\/a>\u00a0or\u00a0<a href=\"https:\/\/staging.theeventscalendar.com\/knowledgebase\/k\/accessing-and-linking-to-community-events-pages\/\" target=\"_blank\" rel=\"noreferrer noopener\">edit<\/a>\u00a0events, and\u00a0<a href=\"https:\/\/staging.theeventscalendar.com\/knowledgebase\/k\/tickets-managing-your-orders-and-attendees\/\" target=\"_blank\" rel=\"noreferrer noopener\">manage attendees and orders<\/a>.\u00a0 See also: <a href=\"https:\/\/staging.theeventscalendar.com\/knowledgebase\/k\/community-events-shortcodes\/\" target=\"_blank\" rel=\"noreferrer noopener\">Community Events Shortcodes<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"short\">More Shortcodes<\/h3>\n\n\n\n<p>Check out all our possible <a href=\"https:\/\/staging.theeventscalendar.com\/knowledgebase\/k\/shortcodes\/\" target=\"_blank\" rel=\"noreferrer noopener\">Shortcode<\/a> options.\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While Events Calendar Pro provides some calendar widgets that you can add to your site&#8217;s sidebars and such, sometimes you don&#8217;t want the calendar content in a sidebar\u2014you want it squarely in the content of a post or page directly. With The Events Calendar family of plugins, you have several methods for accomplishing the insertion&#8230;<\/p>\n","protected":false},"author":3,"featured_media":1955565,"comment_status":"closed","ping_status":"closed","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":[77],"tags":[76],"stellar-product-taxonomy":[158],"class_list":["post-1946795","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-shortcodes","tag-shortcodes","stellar-product-taxonomy-events-calendar-pro"],"acf":[],"taxonomy_info":{"category":[{"value":77,"label":"Shortcodes"}],"post_tag":[{"value":76,"label":"Shortcodes"}],"stellar-product-taxonomy":[{"value":158,"label":"Events Calendar Pro"}]},"featured_image_src_large":["https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/02\/social-share-1024x538.png",1024,538,true],"author_info":{"display_name":"Jaime Marchwinski","author_link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/author\/jaimetri-be\/"},"comment_info":0,"category_info":[{"term_id":77,"name":"Shortcodes","slug":"shortcodes","term_group":0,"term_taxonomy_id":77,"taxonomy":"category","description":"","parent":61,"count":16,"filter":"raw","term_order":"0","cat_ID":77,"category_count":16,"category_description":"","cat_name":"Shortcodes","category_nicename":"shortcodes","category_parent":61}],"tag_info":[{"term_id":76,"name":"Shortcodes","slug":"shortcodes","term_group":0,"term_taxonomy_id":76,"taxonomy":"post_tag","description":"","parent":0,"count":17,"filter":"raw","term_order":"0"}],"_links":{"self":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1946795","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\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1946795"}],"version-history":[{"count":1,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1946795\/revisions"}],"predecessor-version":[{"id":1956024,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1946795\/revisions\/1956024"}],"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=1946795"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1946795"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1946795"},{"taxonomy":"stellar-product-taxonomy","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/stellar-product-taxonomy?post=1946795"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}