Skip to main content
7 events
when toggle format what by license comment
Nov 23, 2012 at 3:35 comment added kaiser Makes me wonder why $item->current or $item->current_parent isn't true. Anyway: Elegant solution, ideal muplugin. +1
Jan 7, 2012 at 14:48 vote accept Pekka
Jan 7, 2012 at 14:48 comment added Pekka Oh maaan, shame on me! I didn't check properly, it indeed is the way you say. I don't understand how I could overlook that. Sorry and thanks!
Jan 7, 2012 at 14:43 comment added TheDeadMedic WordPress adds classes in a context-aware fashion. If you're viewing a post, it will add the class current_page_parent if the item is the 'posts page' - check out your source if you don't believe me!
Jan 7, 2012 at 14:42 comment added Pekka Re your edit, ahh, that looks interesting, I think I can work with that: Posts are not being treated as children of the posts page so neither current_page_parent nor current_page_childrn turn up, but I should be able to hack it using your code sample. I will try out and get back to you.
Jan 7, 2012 at 14:39 history edited TheDeadMedic CC BY-SA 3.0
added 913 characters in body
Jan 7, 2012 at 14:33 history answered TheDeadMedic CC BY-SA 3.0