Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Excluding posts/pages/cpts does not work › Reply To: Excluding posts/pages/cpts does not work
Hi,
That option is to exclude results from showing up – not to exclude sections or elements from a specific page. The plugin searches the database of the selected field, so if a result is found, then the keyword must be there in either of the selected fields.
If you want to exclude the start page and the contact page for example, then make sure the correct post type is selected at the exclusion: https://i.imgur.com/eCpJmHO.png
Excluding the “wpforms” post type will have no effect whatsoever, because those are only storage post types for the wpforms plugin, and are not actually searchable.
If you want to exclude certain shortcodes contents from the search, then I recommend using the index table engine instead. There, you can tell the indexer to ignore some shortcodes: https://i.imgur.com/0sa1ujR.png
If the forms contents are integrated via shortcode, then adding the shortcode to the exceptions list will ignore page/post matches based on the forms content.