Hot answers tagged

1 vote

Different date time in results of search

All the date functions reference the global $post variable, but from your code the $post variable is not being used, so that's why the date is wrong. Try this (untested): foreach ( $total_results as $...
Caleb's user avatar
  • 1,680

Only top scored, non community-wiki answers of a minimum length are eligible