Are WordPress searches on my website affected by A/B testing?

WordPress searches only look at the original content of your site, ignoring any active A/B tests and the content of their variants. However, the information displayed as a search result will be different depending on the tests being run and their test scope:

  • Tests with global impact scope: if you are running a test that has a global impact on your website such as a headline test, or a page, post or custom post type test with global consistency checked, then the result displayed will be the variant assigned to the user.
  • Tests with specific content impact scope: if you are running a page, post or custom post type test with the test scope specific to that content with the global consistency unchecked, then the result displayed will be the original content (variant A). However, once the user accesses said content under test, the tested content will be opened, and they will see the variant they are supposed to see.