Timeline for Global $post shows null in some of my custom post types archive pages
Current License: CC BY-SA 3.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 7, 2020 at 12:41 | answer | added | P.O.W. | timeline score: 0 | |
Jun 2, 2019 at 18:55 | answer | added | Vincent Guesné | timeline score: 0 | |
Nov 18, 2017 at 5:16 | vote | accept | mhuenchul | ||
Nov 18, 2017 at 5:01 | answer | added | Jacob Peattie | timeline score: 1 | |
Nov 18, 2017 at 0:00 | comment | added | mhuenchul | Thank you @Milo for your answer but i found a good solution, but no the answer to the question. | |
Nov 17, 2017 at 23:58 | answer | added | mhuenchul | timeline score: -2 | |
Nov 17, 2017 at 23:30 | comment | added | Milo |
Try using get_queried_object() instead and see what that returns. It's best to avoid globals whenever possible.
|
|
Nov 17, 2017 at 22:12 | history | edited | mhuenchul | CC BY-SA 3.0 |
added 3569 characters in body
|
Nov 17, 2017 at 21:56 | comment | added | Nikki Mather | Can you share the code for the registration of the custom post types (both)? | |
Nov 17, 2017 at 21:50 | review | First posts | |||
Nov 18, 2017 at 1:42 | |||||
Nov 17, 2017 at 21:49 | history | asked | mhuenchul | CC BY-SA 3.0 |