Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Created March 26, 2020 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jchristopher/19c09fbe609a9877d502fd26329b3c3c to your computer and use it in GitHub Desktop.
Save jchristopher/19c09fbe609a9877d502fd26329b3c3c to your computer and use it in GitHub Desktop.
Disable global excerpt retrieval for Pages in SearchWP
<?php
// Disable global excerpt retrieval for Pages in SearchWP.
add_filter( 'searchwp\source\post\global_excerpt\page', '__return_false' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment