Exclude a div by class or id from WordPress search
-
[ Moved to the Fixing WordPress sub-forum. ]
Is there anyway of excluding content form the WordPress search. I know certain posts, pages etc can be excluded but I want a specific text box on each page to be excluded.
Or if that isn’t possible then the opposite would work too. Specifying that the search only checks a specific part of the content on each post by div class.
Essentially we want the search result keywords to focus on a specific part of the pages and ignore another part. What would be the best way to achieve this?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Exclude a div by class or id from WordPress search’ is closed to new replies.