280 reputation
517
bio website
location Malmö, Sweden
age
visits member for 2 years, 5 months
seen May 21 at 10:31

I'm a website developer. Frameworks that I use are WordPress, jQuery and CSS. Tools I use are Sublime Text, CodeKit, LESS, git, Dash and others.


Sep
14
comment Redirect Restricted Page to 404
very good answer
Jun
30
comment APC object caching in combination Batcache/memcached page caching?
Thanks for you input Wyck. I've added some more info about my setup. I'll have multiple single WordPress sites on virtual servers served by a single nginx instance. That is why I'm thinking of combining apc and memcached backends for different caching (bytecode and fullpage, the exact terms and their function is still a bit cloudy to me). It's unclear to me how to set that up. From your writing and from reading elsewhere that seems to be an option, but I can't find any configuration examples of it.
Apr
14
comment spaces inside parenthesis
Although some of the reasons given aren't useful for me, they make sense and I can see how it may be useful to others. What's strange to me is that I haven't seen it used much at all in other programming languages. Maybe it's just one of those conventions that each language seems to have.
Jan
21
comment WooCommerce: Change default country on the cart page
This is not an answer, but I've come to realise that the country chosen in the calculator has no bearing on the final shipping price. When using PayPal Express Checkout the shipping price is actually calculated on the shipping country returned from PayPal (which is the same as the billing country if a different shipping address is not entered). This make the matter quite a bit less pressing for us.
Nov
4
comment When should add_rewrite_tag() be used?
Thanks for this. One thing that I understand from your answer is that add_rewrite_tag() can be used for making placeholders to be used in Settings->Permalinks. About using a taxonomy, is it a requirement for using add_rewrite_tag()? My impression from the Codex page is that it's not, but it seems commonly used. I expanded my question with regard to using add_rewrite_tag() in conjunction with add_rewrite_rule() as suggested in the Codex page.
Nov
2
comment Undefined property: stdClass::$labels in general-template.php post_type_archive_title()
Thank you. That fixed both the title and suppressed the notices, like you said. I modified it slightly to check is_tag instead of is_tax, and learned a lot in the process.
Nov
1
comment Undefined property: stdClass::$labels in general-template.php post_type_archive_title()
I read in this comment in a related ticket that a filter can be used to rebuild the title but the commenter doesn't elaborate. I've never created a filter myself. Any idea how to do this?
Nov
1
comment Undefined property: stdClass::$labels in general-template.php post_type_archive_title()
Thanks for the confirmation and the ticket.
Oct
23
comment Trying to get property of non-object in wp-includes/capabilities.php
Thank Johannes. I included both sequences for completeness as they always seem to come in pairs with one minute in between. I got the idea to delete browser cache, cookies etc. and the notices stopped. But reenabling plugins and the custom theme I'm using made it come back. I'll try to isolate it.
Sep
11
comment Can is_page() be combined with a switch control structure?
Wonderful! Exactly what I needed. Thanks for you help.
Sep
11
comment Can is_page() be combined with a switch control structure?
This is an abstract concept question. And a simple at that. Do you consider it unwarranted? If so, why?
Aug
18
comment Select objects from get_posts()
The list of PHP array functions was very useful. I found answers to my questions using that and some examples I found on the web. In particular, I used array_keys combined with array_search to get the preceding/following object inspired by this Stack Overflow post link
Aug
17
comment rewrite rule to redirect to the most recent date permalink
Thanks Milo. It was my initial idea to use an action hook, but it's not clear to me which one to use and how to do it. I posted my solution below. How could I adapt it to an action hook approach?
Aug
17
comment rewrite rule to redirect to the most recent date permalink
I did as you suggested and made a redirect in the archive template based on a condition. I'll post my solution below.
Aug
17
comment rewrite rule to redirect to the most recent date permalink
Do I understand correctly that you suggest to redirect in the archive-mycpt.php template? Can that be done if the same template is used to display the date archives? Maybe a condition could be used.
Aug
6
comment Select objects from get_posts()
My code was bad. I can now reference any index.
Aug
6
comment Select objects from get_posts()
Thanks for the list. For some reason I can only reference by index the first eight objects, even though print_r($objects); prints them all out (all 123 objects), as does a foreach loop. I get Undefined offset: 8 for index 8 and other higher that I've tried. Any ideas why?
Jul
28
comment Paged homepage - requirements?
Are the two URL fields in general settings correct?
Jun
11
comment One of my pages uses the archive.php template only. Why?
I'm building this site for a customer an it is therefore not yet public. At the moment I'm very busy and it works consistently, but I'll make a new site that exhibits this phenomenon in a few days with posts of the code too. It could be due to what Milo described.
Jun
9
comment One of my pages uses the archive.php template only. Why?
Well I would have added more information if I had know what's relevant. The way some parts of the template hierarchy works is still black magic to me. I'm very grateful for all the information I get that help me understand.