bestprogrammerintheworld

less info
145 reputation
11
bio website wibergsweb.se
location Sweden
age 40
visits member for 6 months
seen Apr 16 at 14:45

I'm developing both code and my own company Wibergs Web. I live in Skövde, Sweden - and I'm enjoying life even though I haven't seen any polar bears here recently ;-)


Mar
21
comment Pass the post ID
IF your $post is a $post object, then just use $post->ID . In your js-code you could just simple do <?php echo $post->ID;?> where you want it.
Mar
21
comment wordpress in wamp lan doesn't load css
It's obvious. You don't have the CSS/JS LAN - development kit - plugin for Wordpress;-) No just kidding. A guess would be that it is htacess-related or it's that simple that it points to incorrect css/js - file.
Mar
20
asked How to map ids of taxonomy with custom post type objects?
Mar
20
comment How to use IN array properly in Wordpress?
Why is this safer/better? I'm not interested in fetching objects really. The thing I want to do is just to count number of occurences for each course (course_3202 = 14, course_course_3201 = 22 etc).
Mar
19
accepted How to use IN array properly in Wordpress?
Mar
19
comment How to use IN array properly in Wordpress?
aha, thanks a lot!
Mar
19
asked How to use IN array properly in Wordpress?
Mar
17
accepted How do I show errors after validation with a custom form frontend?
Mar
17
comment How do I show errors after validation with a custom form frontend?
aah. Thanks a lot for sorting that out! :-)
Mar
17
comment How do I show errors after validation with a custom form frontend?
Thanks for your extended answer. I am actually doing that check in jQuery. But for safety I must have server-side validation as well. But I still didn't get the answer on my actual question :-) (How do I pass the actual errors from checkFrontEndRegistration() to the frontEndRegistration() ? (I mean class_errors would just be an empty array if there are nothing in array $errors that is specified)
Mar
17
comment How do I show errors after validation with a custom form frontend?
How do I pass the actual errors from checkFrontEndRegistration() to the frontEndRegistration() ? It's a correct assumption, by the way.
Mar
17
revised How do I show errors after validation with a custom form frontend?
added 137 characters in body
Mar
17
asked How do I show errors after validation with a custom form frontend?
Feb
20
accepted Why can't I update username through Wordpress API?
Feb
20
comment Why can't I update username through Wordpress API?
Ok, thank you! :-) (I asked because I thought there was some real issue with the change of usernames. It seems it's all about taking precaution)
Feb
20
comment Why can't I update username through Wordpress API?
So basically - you can't do it through the API because that would make the WP - developers responsible? ;-)
Feb
20
comment Why can't I update username through Wordpress API?
I know HOW to do solve the issue, but I was asking WHY I have to directly against the db instead of through the API. I think it would make more sense for it to be available through the API, because the API could control diffrent things/errors/warnings that could error when changing the username.
Feb
20
comment Why can't I update username through Wordpress API?
This is not exactly an answer, because I've already mentioned this in my question. My real issue was WHY it isn't recommended and WHY can't I do it through the Wordpress API?
Feb
20
asked Why can't I update username through Wordpress API?
Feb
20
accepted Is there anything special I have to think of when setting post_date_gmt when inserting a new post?