444 reputation
726
bio website nekojira.com
location
age
visits member for 2 years, 11 months
seen Aug 25 at 12:37

Jan
21
revised Querying posts by latitude and longitude to build a Google Maps with several markers
deleted 2604 characters in body
Jan
21
comment Querying posts by latitude and longitude to build a Google Maps with several markers
kaiser sorry I didn't want to ask "write the code for me" I just wanted advices - I reckon it may be a bit generic, but the two specific questions in the end are: 1) how to query by radius; 2) is a good idea to store the marker in a term meta - if some moderator think it's still too generic it's ok they can delete the question sorry
Jan
21
asked Querying posts by latitude and longitude to build a Google Maps with several markers
Jan
20
awarded  Critic
Jan
20
comment Make wp_link_pages() suitable for Twitter Bootstrap markup
thanks, that explained it all
Jan
20
accepted Make wp_link_pages() suitable for Twitter Bootstrap markup
Jan
20
asked Make wp_link_pages() suitable for Twitter Bootstrap markup
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?