How to hide WordPress content from search results
While it is easy to drop in some code to hide content from search results, it can have some unintended consequences because WordPress uses the same search query loop for both frontend and backend searches. Hide content universally To hide content on both the front and backend, we can use the following code: function prefix_exclude_from_search( […]
How to hide WordPress content from search results Read More »