89 reputation
7
bio website
location
age
visits member for 1 year, 9 months
seen Apr 2 at 18:54

Mar
21
comment Different database query in function.php using mysqli
If it's working outside wp, there must be an issue with the $dbhost,$dbuser,$dbpasswd,$dbname. Echo those to your page, before you $mysqli = new mysqli($dbhost,$dbuser,$dbpasswd,$dbname);
Feb
13
comment What form element names break wordpress?
Yes, when you submit a form with an element named 'name' or 'year' or 'day', etc you'll get a 404. (maybe only sometimes) I found the answer while trying to respond to Rarst.
Sep
19
comment How to cache posts based on $_GET? Option name is too long? Options / transients
I am unsetting $_GET['s'] in some cases, which is why I went thru the string->array->string process. I just want to be sure I'm getting the whole querystring.
Sep
19
comment How to cache posts based on $_GET? Option name is too long? Options / transients
parse_str($_SERVER['QUERY_STRING'], $newget); ksort($newget); $str = http_build_query($newget); $name = wp_hash($str); Should normalize the array, yes?
Sep
6
comment Make WP not format code, not insert line breaks in between tags
Yeah, but then you wind up breaking plugins, etc that rely on wpautop and wptexturize.
Sep
6
comment Make WP not format code, not insert line breaks in between tags
Same result, breaks true or false... I guess that means it's not wpautop...
Sep
5
comment How to turn this .htaccess rule into a dynamic rule with add_rewrite_rule, et al?
And then I can access those vars with $wp_query->query_vars['land'] Thanks!
Sep
4
comment How to use if($wp_query->query_vars['name'] == 'pagethatdontexist') without getting a 404? How to suppress 404
Wul, whatever I want. I'll figure sth out from there. First I've got to get it to not 404 if we are on a url that I want.
Jun
3
comment pagination /page/2 redirects to home page (domain.com)
I'm only doing a replacement query if($postname == 'home') So that I can use that fact and the info from the 'home' post. Basically, my list of non categorized posts is showing on the home page. I played with this for some hours, I think I wasnt able to get is_front_page() to work with pre_get_posts. I have several other reasons on each page where I need to know if I am at 'home'. I appreciate your time here, and would def quit using a new query if I could figure a couple things out.
Jun
3
comment pagination /page/2 redirects to home page (domain.com)
Using pre_get_posts doesnt solve the problem in the linked question/answer#7 above, though does it? If I alter the query args before I get the posts, I wont know that I am 'on a page of posts'... because it hasnt gotten the post yet, Or does it?
Jun
3
comment pagination /page/2 redirects to home page (domain.com)
answer #7 of wordpress.stackexchange.com/questions/50761/… However, I'm pretty sure it has nothing to do with the problem.
Jun
3
comment pagination /page/2 redirects to home page (domain.com)
I fixed it with the template_redirect filter: mydigitallife.info/… But I'd love some more explanation as to why.
Jan
5
comment Where is the changelog for 3.5? where is the list of added removed files?
That isnt a changelog, either. I dont see any file listings. Please reopen this thread.
Oct
21
comment Get list of registered or enqued styles? looking for filters or actions
Beauty. Also, for realted searches, the $wp_scripts works in the same way. So, for concatenizing and minifying purposes, it looks like I can simply go thru the $wp-styles->enqued array, do the concat/min on those files and then swap out my resulting min.css in the ->registered and ->enqued arrays. Problems or thoughts?
Jul
6
comment How to Rename a Template File?
Thanks, i found some sql that helped me out. See below. and I'd give a vote up, but SO rep doesnt transfer to WP.SE :/