Skip to main content
14 events
when toggle format what by license comment
Nov 16, 2010 at 16:55 history edited hakre CC BY-SA 2.5
added 409 characters in body
Nov 16, 2010 at 16:45 history edited hakre CC BY-SA 2.5
added 462 characters in body
Nov 10, 2010 at 15:01 history edited hakre CC BY-SA 2.5
added 493 characters in body; deleted 3 characters in body; edited body
Nov 10, 2010 at 14:08 comment added John P Bloch That's a guideline for people who probably don't know what a nonce is. It doesn't apply in Ash's case.
Nov 10, 2010 at 14:02 history edited hakre CC BY-SA 2.5
typo
Nov 10, 2010 at 13:59 comment added hakre @Ash G - just checked codex again. It's not talked about restriction, but the scope is template (not backend): "Load a template part into a template". codex.wordpress.org/Function_Reference/get_template_part
Nov 10, 2010 at 13:56 history edited hakre CC BY-SA 2.5
added 334 characters in body
Nov 10, 2010 at 13:55 comment added John P Bloch See my updated answer. It's a scope issue causing the nonce failure.
Nov 10, 2010 at 13:51 comment added Lemon Bacon Include does in fact remove the error, the error only happens when using get template part. In either case when viewing source code of the generated page everything appears the same right down to the nonce.
Nov 10, 2010 at 13:50 history edited hakre CC BY-SA 2.5
added 302 characters in body
Nov 10, 2010 at 13:46 comment added hakre @Ash G - Well nonce must be an issue based on the error message that get's displayed after submitting the form. Maybe not the generation but the verification of it? Oh, well there are other reasons for that message, I remember it now. If the page is not properly registerd, this can happen as well. So this can become quite specific. For the get_template_part() this is just a theme function, and to my best knowledge, just use it on frontpage only. I think your include variant is perfectly working and I do not see any reason why to change that. But it does not remove the error, right?
Nov 10, 2010 at 4:23 comment added Lemon Bacon Hi Hakre, I have read the codex and I do not see any mention of it being restricted for use to the front end. A nonce is created in fact, and can even be viewed in 'view source' so again I say nonce is not an issue or if it is I do not understand how (which is very possible and probably more likely) I am well aware of how to create admin pages I have been creating them for years and until now have never had a problem.
Nov 9, 2010 at 18:32 history edited hakre CC BY-SA 2.5
added 87 characters in body
Nov 9, 2010 at 18:21 history answered hakre CC BY-SA 2.5