Hi Rogier, I’ll have to test this out myself and see if I can reproduce.
Have you made any progress on this since? Just making sure I have all the right data still.
Hello again Rogier.
I realize I may not be reaching you, but if you check in again, and for anyone else with the same issue. I finally determined that the manual code needs to be wrapped in a callback function attached to the init hook. I will be making a note of this or outputting it with the “get code” in version .8.
For those who need a visual, do the following:
add_action( 'init', 'mycallbackfunction');
function mycallbackfunction() {
/*paste the "get code" output here. everything within the register post type function*/
}
Feel free to rename the mycallbackfunction bit to whatever you want, but do try to avoid function name clashes 🙂
Thread Starter
Rogier
(@metaphysics)
Hi Michael, thanks so much for your reply. I will give this a try.