103 reputation
7
bio website
location
age
visits member for 2 years
seen Jul 21 at 6:05

Jun
5
accepted How to use if($wp_query->query_vars['name'] == 'pagethatdontexist') without getting a 404? How to suppress 404
Jun
4
comment Plugins in symlinked directories?
Ok, use the filter...but how? what would the function be to correct the url?
May
15
accepted How to get list of paths (not urls) for an image
May
14
comment How to get list of paths (not urls) for an image
I think the backslashes will only be if youre on a Win (local dev) server. i usually do $_SERVER['DOCUMENT_ROOT'] = str_replace('\\','/',$_SERVER['DOCUMENT_ROOT']); in the index.php or config, etc, and never worry about it, after that. Will accept this, if no one comes up with a built in wp func. I couldnt find anything that does it, in wp.
May
14
asked How to get list of paths (not urls) for an image
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
accepted What form element names break wordpress?
Feb
13
answered What form element names break wordpress?
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.
Feb
13
asked What form element names break wordpress?
Sep
20
accepted How to cache posts based on $_GET? Option name is too long? Options / transients
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
19
asked How to cache posts based on $_GET? Option name is too long? Options / transients
Sep
9
answered Enqueue script in specific page
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
6
asked Make WP not format code, not insert line breaks in between tags
Sep
5
accepted How to turn this .htaccess rule into a dynamic rule with add_rewrite_rule, et al?
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!