Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// Custom Post Types in die WordPress-Suche integrieren
function ah_searchAll( $query ) {
if ( $query->is_search ) { $query->set( 'post_type', array( 'site','plugin', 'theme','person' )); } // Custom Post Types noch anpassen
return $query;
add_filter( 'the_search_query', 'ah_searchAll' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment