Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
add_filter( 'the_content', 'add_thing_to_search_page' );
function add_thing_to_search_page( $content ) {
// Check if it's the search page
if ( is_search() ) {
$mycode = 'Put your HTML here';
return $mycode . $content;
return $content;
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.