{"id":2186,"date":"2026-01-07T16:34:21","date_gmt":"2026-01-07T17:34:21","guid":{"rendered":"http:\/\/gogetmuscle.com\/?p=2186"},"modified":"2026-01-07T17:44:45","modified_gmt":"2026-01-07T17:44:45","slug":"how-to-add-filter-dropdown-option-to-search-result-page","status":"publish","type":"post","link":"http:\/\/gogetmuscle.com\/index.php\/2026\/01\/07\/how-to-add-filter-dropdown-option-to-search-result-page\/","title":{"rendered":"How to add filter dropdown option to search result page"},"content":{"rendered":"

As the title say it, I am facing problem while creating filter dropdown option to the search result page, the resulted data is coming from blog post to the page. I am using Hubspot\u00a0CRM Search API that gives the metadata like (total, start-index,\u00a0pagination etc) and array of total 10 detailed data that includes (post title, publish date, author name and it’s details). Only that 10 data I can map through and render to the page and add pagination and If I apply filter logic then the outcomes from this filter coming from that array (only 10 data) and not from the whole blog post data. Do anyone known how to fix this issues.
page link:\u00a0https:\/\/blog.unnanu.com\/hs-search-results?&q=ai<\/a><\/SPAN><\/P><\/p>\n","protected":false},"excerpt":{"rendered":"

As the title say it, I am facing problem while creating filter dropdown option to the search result page, the resulted data is coming from blog post to the page. I am using Hubspot\u00a0CRM Search API that gives the metadata like (total, start-index,\u00a0pagination etc) and array of total 10 detailed data that includes (post title, […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[14],"tags":[],"_links":{"self":[{"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/posts\/2186"}],"collection":[{"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/comments?post=2186"}],"version-history":[{"count":1,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/posts\/2186\/revisions"}],"predecessor-version":[{"id":2187,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/posts\/2186\/revisions\/2187"}],"wp:attachment":[{"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/media?parent=2186"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/categories?post=2186"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/tags?post=2186"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}