f9bd478c by Jeremy Groot

fix to post time

1 parent c00419c7
...@@ -276,7 +276,7 @@ function resources($id, $taxes, $is_fav = false){ ...@@ -276,7 +276,7 @@ function resources($id, $taxes, $is_fav = false){
276 276
277 $post_date = strtotime(get_post_meta($id, 'searchwp_content_pdf_metadata', true)['CreationDate']); 277 $post_date = strtotime(get_post_meta($id, 'searchwp_content_pdf_metadata', true)['CreationDate']);
278 if(empty($post_date)) { 278 if(empty($post_date)) {
279 $post_date = strtotime($post->post_date); 279 $post_date = get_post_time('U',false, $id );
280 } 280 }
281 281
282 $categories = []; 282 $categories = [];
......