{"id":14555,"date":"2021-04-24T13:46:34","date_gmt":"2021-04-24T12:46:34","guid":{"rendered":"https:\/\/johnjohnston.info\/blog\/?post_type=jetpack-portfolio&#038;p=14555"},"modified":"2023-07-09T20:04:12","modified_gmt":"2023-07-09T19:04:12","slug":"first-of-year","status":"publish","type":"jetpack-portfolio","link":"https:\/\/johnjohnston.info\/blog\/portfolio\/first-of-year\/","title":{"rendered":"First of Year"},"content":{"rendered":"<p>I am often searching my blog for the time I notice some natural event, the first snowdrop, cuckoo or the like. This requires looking through a few posts. I though I could make something that woud search and sort by day and month, not year. This is it:<\/p>\n<input type='text' name='search' value='' id='search'  > <button id='searchbutton' onclick='cycleSearch();'>Search<\/button><div id='sorted'><\/div>\n<p>I do not know if this is a very cleverer way to go about this, it uses the WordPress Rest API to search then sorts. It is a simple plugin at the mo with a [firstofyear] shortcode to get the search box.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am often searching my blog for the time I notice some natural event, the first snowdrop, cuckoo or the like. This requires looking through a few posts. I though I could make something that woud search and sort by day and month, not year. This is it: I do not know if this is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"mf2_syndication":[],"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"webmentions_disabled_pings":false,"webmentions_disabled":false,"footnotes":""},"post_format":[],"jetpack-portfolio-type":[649],"jetpack-portfolio-tag":[],"class_list":{"0":"post-14555","1":"jetpack-portfolio","2":"type-jetpack-portfolio","3":"status-publish","4":"format-standard","6":"jetpack-portfolio-type-wordpress","7":"h-entry","8":"hentry"},"better_featured_image":null,"jetpack_likes_enabled":false,"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/jetpack-portfolio\/14555","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/jetpack-portfolio"}],"about":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/types\/jetpack-portfolio"}],"author":[{"embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/comments?post=14555"}],"version-history":[{"count":4,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/jetpack-portfolio\/14555\/revisions"}],"predecessor-version":[{"id":14614,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/jetpack-portfolio\/14555\/revisions\/14614"}],"wp:attachment":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/media?parent=14555"}],"wp:term":[{"taxonomy":"post_format","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/post_format?post=14555"},{"taxonomy":"jetpack-portfolio-type","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/jetpack-portfolio-type?post=14555"},{"taxonomy":"jetpack-portfolio-tag","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/jetpack-portfolio-tag?post=14555"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}