459 reputation
928
bio website nekojira.com
location
age
visits member for 3 years, 3 months
seen 2 days ago

Jan
17
awarded  Popular Question
Jan
16
comment How to determine the depth of a term in a custom taxonomy?
I just realized that the options in the dropdown have a class assigned based on the depth. One could make some css rules to insert a padding for subcategories (which are .level-1 or higher number).
Jan
16
accepted How to determine the depth of a term in a custom taxonomy?
Jan
16
comment How to determine the depth of a term in a custom taxonomy?
what would be the way to perform a taxonomy query without permalinks? I tried myurl.com/?cat=<term_id> or myurl.com/?<taxonomy_name>=<term_id> they both return 404...
Jan
16
comment How to determine the depth of a term in a custom taxonomy?
yeah I got stuck there too... there's a thing like Walker_CategoryDropdown, which is invoked by walk_category_dropdown_tree() which is inside wp_dropdown_categories().... too bad that the latter doesn't take an argument for a custom walker so one would have to rewrite everything just to pass a custom walker, doesn't seem logical to me. On the other hand what the other option would be? Store wp_dropdown_categories() into a variable and do a regex to alter the option contents?
Jan
15
comment How to determine the depth of a term in a custom taxonomy?
there is some method descriped in codex.wordpress.org/Function_Reference/wp_dropdown_categories but URLs created with those methods will return 404 if one uses pretty permalinks, URL rewrites seem not to correct the problem (or maybe they work with blog posts only? in my case is a custom taxonomy)
Jan
15
comment How to determine the depth of a term in a custom taxonomy?
or even more practically, I could do this with javascript, just found a valid example in codex codex.wordpress.org/Function_Reference/wp_dropdown_categories - apparently wp_dropdown_categories doesn't accept a custom walker in the args
Jan
15
comment How to determine the depth of a term in a custom taxonomy?
uh... just thought of it, maybe I can create a custom walker for wp_dropdown_categories...
Jan
15
comment How to determine the depth of a term in a custom taxonomy?
Thanks, but I have a problem with this solution... what if I want to insert some onchange javascript in the <select> and put the term link in the <option> value? In this way the user would get redirected to the term archive by selecting the corresponding item in the list. wp_dropdown_categories() only outputs a plain list if I'm not mistaken.
Jan
15
asked How to determine the depth of a term in a custom taxonomy?
Jan
7
comment Integrating Facebook Registration (and Login) on a Wordpress page
you could hack/fork/rewrite the plugin to change the bitmaps used for the buttons or remove the buttons with something else
Jan
7
comment Integrating Facebook Registration (and Login) on a Wordpress page
I found this plugin wordpress.org/extend/plugins/social-connect
Jan
4
accepted Retrieve the template directory URI via global or get_template_directory_uri() every time?
Jan
2
asked Retrieve the template directory URI via global or get_template_directory_uri() every time?
Jan
1
accepted Organize template parts and page templates in folders in regards of template hierarchy
Jan
1
asked Organize template parts and page templates in folders in regards of template hierarchy
Nov
26
awarded  Popular Question
Nov
2
accepted How to restrict specific post types from being read or added by specific user roles (eg. author)?
Oct
31
asked How to restrict specific post types from being read or added by specific user roles (eg. author)?
Oct
16
awarded  Yearling