I’m working on a Newspaper theme that uses a dateline block in the header. The block displays the last time content was pubished or updated via the_modified_time.
This causes problems on the 404 page. I receive the following error:
Trying to get property of non-object in /xxxxxxxxx/dev/wp-includes/general-template.php on line 1523
I added a conditional tag around the element that removed it from 404 error pages; however, this does not help when a visitor gets the error when trying to pull up something with the loop (else: nothing found, etc.).
Any advice is appreciated.
Here’s the code:
- The topic ‘Theme Development: Trying to get property of non-object error’ is closed to new replies.