Timeline for How Can I Set the Post Author of a Post I Just Created With PHP?
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 23, 2012 at 21:14 | history | edited | kaiser | CC BY-SA 3.0 |
added 19 characters in body
|
Jun 10, 2011 at 21:23 | comment | added | Álex Acuña Viera | @kaiser fixed the array thing. | |
Jun 10, 2011 at 21:16 | history | edited | Álex Acuña Viera | CC BY-SA 3.0 |
edited body
|
Jun 10, 2011 at 21:12 | comment | added | kaiser |
But what about arrayh(); ? This won't ever work... Plus: Using localized names makes it hard for others to understand your code. This is imo more important if you're answering on a public Q/A site that should be a reference for thousands of people.
|
|
Jun 10, 2011 at 20:20 | comment | added | Álex Acuña Viera | Because you needed something else than the actual logged author. Besides, I'm not a fan of using too default name variables, never knows. | |
Jun 10, 2011 at 19:53 | vote | accept | dwenaus | ||
Jun 10, 2011 at 19:53 | comment | added | dwenaus | and why are you using useraidi and not user_id. odd. | |
Jun 10, 2011 at 19:51 | comment | added | dwenaus | i was looking at wp_insert_post and thought that the user_id was hard coded. but it was just set as the default. and maybe it was another bug that caused it not to work. duh! thanks. | |
Jun 10, 2011 at 19:42 | history | answered | Álex Acuña Viera | CC BY-SA 3.0 |