{"id":4426171,"date":"2013-12-18T14:34:51","date_gmt":"2013-12-18T14:34:51","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/search-exploit\/"},"modified":"2016-08-21T13:38:53","modified_gmt":"2016-08-21T13:38:53","slug":"search-exploit","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/search-exploit\/","title":{"rendered":"Search Exploit"},"content":{"rendered":"<p>Hi!<\/p>\n<p>Downloaded your plugin yesterday and it works like a charm with one exception.<\/p>\n<p>Let&#8217;s say I create a private page called my-private-page<\/p>\n<p>Once it&#8217;s created if I go to the sites front end and use the WordPress search bar to search for &#8216;private&#8217; it pulls up the page and shows it in the search result.<\/p>\n<p>I&#8217;d like to exclude your custom post time from search and believe I need to add the line :<br \/>\n&#8216;exclude_from_search&#8217; =&gt; true<\/p>\n<p>Where do I put this to stop my private pages showing in search results?<\/p>\n<p>https:\/\/wordpress.org\/plugins\/s8-private-pages\/<\/p>\n","protected":false},"template":"","class_list":["post-4426171","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4426171","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":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4426171\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4426171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}