fix to post time
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -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 = []; | ... | ... |
-
Please register or sign in to post a comment