{"id":3424,"date":"2025-03-20T06:00:00","date_gmt":"2025-03-20T06:00:00","guid":{"rendered":"https:\/\/www.imgtv.org\/how-to-add-search-to-a-static-wordpress-site-for-free-using-lunr\/"},"modified":"2025-03-20T06:00:00","modified_gmt":"2025-03-20T06:00:00","slug":"how-to-add-search-to-a-static-wordpress-site-for-free-using-lunr","status":"publish","type":"post","link":"https:\/\/www.imgtv.org\/how-to-add-search-to-a-static-wordpress-site-for-free-using-lunr\/","title":{"rendered":"How to Add Search to a Static WordPress Site for Free Using Lunr"},"content":{"rendered":"
If you have a static WordPress site or you’re strongly considering launching one, then you’re probably already aware of its default limitations. One of the big ones is the inability to add a search function to your site. But with a little bit of creative thinking, you can use a free, open-source JavaScript library called Lunr (along with a few other tools) to get around that problem and build one anyway. Here’s how…<\/p>","protected":false},"excerpt":{"rendered":"
If you have a static WordPress site or you’re strongly considering launching one, then you’re probably already aware of its default limitations. One of the big ones is the inability to add a search function to your site. But with a little bit of creative thinking, you can use a free, open-source JavaScript library called […]<\/p>\n","protected":false},"author":158766747798096,"featured_media":3425,"comment_status":"open","ping_status":"0","sticky":false,"template":"","format":"standard","meta":{"pmpro_default_level":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-3424","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","pmpro-has-access"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.imgtv.org\/wp-json\/wp\/v2\/posts\/3424","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.imgtv.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.imgtv.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.imgtv.org\/wp-json\/wp\/v2\/users\/158766747798096"}],"replies":[{"embeddable":true,"href":"https:\/\/www.imgtv.org\/wp-json\/wp\/v2\/comments?post=3424"}],"version-history":[{"count":0,"href":"https:\/\/www.imgtv.org\/wp-json\/wp\/v2\/posts\/3424\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.imgtv.org\/wp-json\/wp\/v2\/media\/3425"}],"wp:attachment":[{"href":"https:\/\/www.imgtv.org\/wp-json\/wp\/v2\/media?parent=3424"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.imgtv.org\/wp-json\/wp\/v2\/categories?post=3424"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.imgtv.org\/wp-json\/wp\/v2\/tags?post=3424"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}