{"id":18184008,"date":"2024-12-07T00:22:52","date_gmt":"2024-12-07T00:22:52","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/change-query-string\/"},"modified":"2024-12-07T00:38:10","modified_gmt":"2024-12-07T00:38:10","slug":"change-query-string","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/change-query-string\/","title":{"rendered":"Change query var from s to q"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hi I have kind of an unusual task. I would like to change the query string shown in the url bar to use &#8220;?q=&#8221; instead of &#8220;?s=&#8221;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I&#8217;ve looked into altering the form as well as using some php to intercept and alter the query before sending it to Relevanssi. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I am using Elementor, but am okay creating a custom search submission form if need be.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I am not very experienced in the realm of search so any advice or resources would be very appreciated.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thanks!<\/p>\n","protected":false},"template":"","class_list":["post-18184008","topic","type-topic","status-publish","hentry","topic-tag-query-string"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18184008","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18184008\/revisions"}],"predecessor-version":[{"id":18184017,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18184008\/revisions\/18184017"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18184008"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}