Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
// 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
You can’t perform that action at this time.