Timeline for Accessing $post global on a custom post type archive page
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 26, 2015 at 19:40 | comment | added | Fiaz Husyn | Than only thing I can think of, is that you are trying to access it on a page where it was not set. However still you can avoid error message by testing if object exists by using : is_object() | |
Oct 15, 2015 at 14:29 | comment | added | any_h | It doesn't help in this case. | |
Oct 15, 2015 at 7:15 | history | answered | Fiaz Husyn | CC BY-SA 3.0 |