Content of the page

How to hide post from search query

Content of the article

Sometimes we are need to hide for any reason posts from searching. For example if it is not actual or any another reason. For it you can add in post this meta key - mdf_hide_post - value of which doesn matter, only existing of it matter. If it is exists in posts - it will be hidden from search in the plugin. To make the post searchable again just remove this meta key from the post metas: