120 reputation
1215
bio website
location Lithuania
age
visits member for 3 years, 4 months
seen Sep 10 at 20:25

Jun
12
asked Hide “Gallery Settings” and “Insert into Post” button from Attachment window
May
29
awarded  Autobiographer
May
29
awarded  Supporter
May
29
accepted Taxonomy dropdown metabox in the back-end
May
29
comment Taxonomy dropdown metabox in the back-end
@Hameedullah this is great, thanks for solution :)
May
29
comment Taxonomy dropdown metabox in the back-end
@Hameedullah very nice. But I have a problem with it. I pasted all this code to my functions.php and when I go to the post back-end, I get this: Warning: define() expects at least 2 parameters, 1 given in (pointing to this line of code: if ( define('DOING_AUTOSAVE') && DOING_AUTOSAVE )).
May
28
comment Taxonomy menu with post count and multiple parents
Thanks, for now current code will do. I'm not good enough with PHP to dive in to that yet :)
May
28
awarded  Scholar
May
28
accepted Taxonomy menu with post count and multiple parents
May
28
comment Taxonomy menu with post count and multiple parents
@VicePrez Yes, it works, but I was asking if it's a good way to achieve all this. I mean, if I would need 3rd level for that menu (ex. car models: Ford Focus, Ford Mondeo, Ford Mustang etc.), I would need to duplicate some code to get it right. So maybe there's a better way to do it? :)
May
28
asked Taxonomy dropdown metabox in the back-end
May
28
revised Taxonomy menu with post count and multiple parents
added 192 characters in body
May
28
revised Taxonomy menu with post count and multiple parents
added 36 characters in body
May
28
comment Taxonomy menu with post count and multiple parents
@VicePrez Well, I've changed query_posts() method to wp_query(), but other changes are not good for this :) Your query would print term link for each post: BMW (1) BMW (2) BMW (3). And I need to print it only once for each term. So query should end before <li> (foreach will handle it). Also $auto_brand->count will return post count of all posts in that term, not only New+BWM, but Used+BMW too and that was my problem in the first place :) I've edited my question again, to reflect this suggested wp_query change.
May
28
comment Taxonomy menu with post count and multiple parents
As it is now, post count displays number of all posts with that term (I would get BWM (5) in both parent terms), but I need to filter it by it's parrent term too. I managed to do it via query_posts, but not sure if it's a good way :) Updated my original question with a new code.
May
28
awarded  Editor
May
28
revised Taxonomy menu with post count and multiple parents
added 1544 characters in body
May
27
awarded  Student
May
27
asked Taxonomy menu with post count and multiple parents