163 reputation
5
bio website codefx.biz
location Bavaria
age 36
visits member for 2 years, 8 months
seen May 20 at 19:52

Mar
28
comment how to use get_field_name in external ajax handler
the proper way is the register both hooks frontend AND backend... when using WP-AJAX on the frontend... you just need to add the _priv hook (that's why I mean with backend hook).
Mar
28
comment how to use get_field_name in external ajax handler
of course it is... you probably just don't get it - why produce such crap, when the proper way to do it (means: doing it WP style) is so simple? Adding complexity while it isn't required ...is only causing problems.
Mar
25
comment how to use get_field_name in external ajax handler
you have to register both, frontend and backend hooks, when using wp-ajax on the frontent. seems unlogical - but that's the way it works.
Mar
24
comment how to use get_field_name in external ajax handler
just register your ajax actions properly - using external files causes more issues than it would serve any use.
Jun
9
comment Custom Post Templates
b/c the above solution requires the user to manually maintain files and ID - instead of simply using an already prepared template (which can get problematic, because every revision and auto-saved edit will get a new ID assigned).
Jun
9
comment Custom Post Templates
you could switch by post-type (instead of IDs): codex.wordpress.org/Post_Type_Templates
Jun
9
comment Custom Post Templates
Indeed, requires a plugin to support it: wordpress.org/plugins/custom-post-template
Oct
4
comment How to let authors revise other authors drafts, but keep them from publishing?
might add the function soon, since the question has 4 upvotes...
Sep
28
comment How do I disable trackback notifications on a WordPress.com blog?
I'm sorry for not having provided the button-clicker version :)
Aug
17
comment Printing out JSON array returned
Sorry, had to down-vote because the answer was slightly misleading, partially incorrect. I guess it works like that - but the way it works isn't like it's meant to be (sending JSON as text/plain and then parsing it again makes no sense, waste of electricity).
Aug
17
comment Printing out JSON array returned
Erm ... jQuery.parseJSON(data) is pretty useless - because variable "data" already should be a JS object in the callback of the jQuery.ajax function... this would only apply if it's a JSON-string. I rather assume you send out the JSON without or with wrong HTTP headers.
Aug
17
comment moving server can not login
I really don't see ANY relation at all between these PHP settings and a login page not working - ordinary a password reset delivered to a local mailbox should have done the trick. If it really fixed it, something must be messed up with your PHP installation/configuration.
May
31
comment Is there a maximum slug length?
@TomAuger if it's that short, my conclusion might not apply - just wanted to point out that possibility as well. Apparently this question cannot be answered without FTP/mySQL access.
May
30
comment Is there a maximum slug length?
Think you're right on that... post_name and GUID can be excluded as source of the problem - what's left are permalinks and re-writes. Without Apache logfiles or anything this is just guessing around ;)
May
30
comment Is there a maximum slug length?
Erm, for what else than identification purposes should a unique ID be used then? I mean, the question basically is: What's the reason a 4o4 is thrown in this case?
May
28
comment achieving login implementation without using sessions
It's just basic principles of PHP sessions ... that session_start() enables server-side storage whilst setcookie() enable client-side storage of session data. Maybe just get rid of the idea that sessions and cookies are something completely different - the only real difference is the storage location.
May
13
comment achieving login implementation without using sessions
PHP cookies are part of PHP sessions - even if WP probably may not utilize server-side sessions for session data storage (in order to be compatible with some crappy shared hostings).
Apr
20
comment Conditionally enqueue a widget's script/stylesheet in HEAD (only when present on page!)
Maybe a combination of Bainternet's solution which seems just fine with widget-logic? Like this you could define which widget to load where - and also what shall been loaded. Adding own conditional statements to a theme's functions.php might help to improve further.
Feb
29
comment How do I disable trackback notifications on a WordPress.com blog?
You still can disable the "link notifications" by default ... and might have to remove them manually from any previous posts.