202 reputation
39
bio website kau-boys.com
location
age
visits member for 3 years, 7 months
seen 2 days ago

Web developer from Berlin, blogging and posting about WordPress and other technical topics, active member of the WP Meetup Berlin and WP Meetup Potsdam and member of the organization team of the WP Camp Berlin.


Feb
27
awarded  Yearling
Feb
26
answered WooCommerce: Translation lost on AJAX call in Checkout page
Feb
26
comment WooCommerce: Translation lost on AJAX call in Checkout page
@Rarst thanks for your tips so far. I am the developer and I think this issue could be fixed by checking on a AJAX call, if the call was triggered from a frontend page. In this case I would than use a given lang request param if given or inactivate the localization, so the default WP_LANG value would be used. Now I only have to find out how to check if the AJAX call was coming from a frontend page ;) I keep you updated.
Jan
31
comment How to migrate subsite from dev multisite to production multisite
Due to the serialised strings in the database it is not that easy to do it. I haven't seen a plugin for a pure migration so far, but that absolutely something that should be done. The only was of moving "most" parts of one blog to another is through the XML export/import mechanism, but you still have to fix a lot of paths afterwards.
Jan
21
awarded  Caucus
Jan
21
awarded  Constituent
Nov
6
accepted How to make a category page the blog home page?
Nov
5
awarded  Notable Question
Jul
11
answered How to insert images into posts without using Add Media dialog
May
29
accepted Rewrites rules disappear after a while
May
28
comment Rewrites rules disappear after a while
So than I still have to flush them each time a page loads? Otherwise they could be removed when another plugin flushes the rules? Or am I save, as I always add them on init? So is my solution correct?
May
27
awarded  Commentator
May
27
comment Rewrites rules disappear after a while
If I understand you correct, the code posted in my edited querstion would solve it? But then, what is the flush_rewrite_rules about? If it is always overwritten, when some core funtion calls it and I don't really need it, why is there such a function? So why sould I ever call the event_archive_activate() function if I always have to call the event_archive_set_rewrite_rules() on every page load?
May
27
revised Rewrites rules disappear after a while
added 639 characters in body
May
27
comment Rewrites rules disappear after a while
According to the codex, you should not flush it in the init_action as it is quite slow and flushing it on every page load is totall wrong. I am just wondering how some process might remove my rules. I am even not sure how they still can be present, if some other plugin would call the flush function. Am I doing something completely wrong in my plugin? I think not.
May
27
asked Rewrites rules disappear after a while
Jan
19
awarded  Popular Question
Aug
21
comment Randomise results from a category page?
Another easy solution would be a ajax request with new posts for the current page. That is fairly easy using jQuery. And it will allow the user to get more shuffled results even quicker.
Aug
20
comment Randomise results from a category page?
Than you will need to have a different permalink for those pages. So a custom tempalte would be the easiest solution. But if you want to "preseve the shuffle result" on the subpages, you have to store the result in the user's session and use it so sort the posts.
Aug
20
comment Randomise results from a category page?
You only want to shuffle the posts he sees on the current page? Or do you want to shuffle all subpages for the category archive?