248 reputation
215
bio website
location Malmö, Sweden
age
visits member for 1 year, 11 months
seen 2 days ago

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.


Nov
1
revised Undefined property: stdClass::$labels in general-template.php post_type_archive_title()
added and corrected information
Nov
1
asked Undefined property: stdClass::$labels in general-template.php post_type_archive_title()
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.
Oct
23
asked Trying to get property of non-object in wp-includes/capabilities.php
Sep
11
accepted Can is_page() be combined with a switch control structure?
Sep
11
comment Can is_page() be combined with a switch control structure?
Wonderful! Exactly what I needed. Thanks for you help.
Sep
11
revised Can is_page() be combined with a switch control structure?
added code
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?
Sep
11
asked Can is_page() be combined with a switch control structure?
Sep
5
accepted Creating entries with image attachements within posts and managing them in a list
Sep
5
answered Creating entries with image attachements within posts and managing them in a list
Aug
19
asked Creating entries with image attachements within posts and managing them in a list
Aug
18
accepted Select objects from get_posts()
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
revised rewrite rule to redirect to the most recent date permalink
added 115 characters in body
Aug
17
answered rewrite rule to redirect to the most recent date permalink
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
17
asked rewrite rule to redirect to the most recent date permalink