Put sticky posts first in resultsIf you want to have sticky posts first in results when they match the search query, just add this code…