{"id":1151,"date":"2022-08-30T11:32:50","date_gmt":"2022-08-30T16:32:50","guid":{"rendered":"https:\/\/docs.joedolson.com\/my-calendar\/?p=1151"},"modified":"2025-12-23T20:03:21","modified_gmt":"2025-12-24T02:03:21","slug":"search","status":"publish","type":"post","link":"https:\/\/docs.joedolson.com\/my-calendar\/search\/","title":{"rendered":"Search Events"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">My Calendar includes a simple search form that can be used in a few different ways. The main parameter for the search form is a target URL. By default, searches will be targeted to the main My Calendar page, where your calendar is displayed. In that case, they&#8217;ll display in whatever default view your calendar uses. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you target a URL that does not contain the <code>my_calendar<\/code> shortcode, then the results will display in a numbered list showing the events that match the search in date order from soonest to farthest out.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The event search in My Calendar is very basic. For a more advanced search, <a href=\"https:\/\/www.joedolson.com\/my-calendar-pro\/\">use My Calendar Pro<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Widget<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The search widget is <a href=\"https:\/\/docs.joedolson.com\/my-calendar\/my-calendar-widgets\/\" data-type=\"post\" data-id=\"368\">documented on the widgets page.<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Shortcode<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You can insert a search form using the shortcode <code><code class=\"shortcode\">&lsqb;my_calendar_search url=\"https:\/\/yourdomain.com\/target\/\"&rsqb;<\/code><\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">My Calendar Navigation<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The search can be added as a navigation item above or below the calendar&#8217;s main view. This method only queries the current calendar view. For example, if you&#8217;re performing a search in the calendar navigation where the view only shows events from one location, the search will only query events in that location. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Use the key <code>search<\/code> to insert it in the main My Calendar shortcode.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My Calendar includes a simple search form that can be used in a few different ways. The main parameter for the search form is a target URL. By default, searches will be targeted to the main My Calendar page, where your calendar is displayed. In that case, they&#8217;ll display in whatever default view your calendar [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,41],"tags":[],"class_list":["post-1151","post","type-post","status-publish","format-standard","hentry","category-shortcodes","category-widgets"],"_links":{"self":[{"href":"https:\/\/docs.joedolson.com\/my-calendar\/wp-json\/wp\/v2\/posts\/1151","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.joedolson.com\/my-calendar\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.joedolson.com\/my-calendar\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.joedolson.com\/my-calendar\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.joedolson.com\/my-calendar\/wp-json\/wp\/v2\/comments?post=1151"}],"version-history":[{"count":3,"href":"https:\/\/docs.joedolson.com\/my-calendar\/wp-json\/wp\/v2\/posts\/1151\/revisions"}],"predecessor-version":[{"id":1153,"href":"https:\/\/docs.joedolson.com\/my-calendar\/wp-json\/wp\/v2\/posts\/1151\/revisions\/1153"}],"wp:attachment":[{"href":"https:\/\/docs.joedolson.com\/my-calendar\/wp-json\/wp\/v2\/media?parent=1151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.joedolson.com\/my-calendar\/wp-json\/wp\/v2\/categories?post=1151"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.joedolson.com\/my-calendar\/wp-json\/wp\/v2\/tags?post=1151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}