103 reputation
7
bio website
location
age
visits member for 2 years, 5 months
seen 2 days ago

Dec
6
comment Neccessary to call add_submenu_page and add_menu_page from admin_menu hook?
Ahh... Redux framework includes plugin.php
Dec
6
comment Neccessary to call add_submenu_page and add_menu_page from admin_menu hook?
auth_redirect seems to be the earliest you can hook. Arrg, so I have no idea why the other site works.
Dec
6
comment Neccessary to call add_submenu_page and add_menu_page from admin_menu hook?
Oh wierd... I tried it on another site, also child of Harmony theme, Fatal error: Call to undefined function add_menu_page() in C:blah/blah\www\wp-content\themes\Harmony_child\functions.php on line 24
Dec
6
comment Neccessary to call add_submenu_page and add_menu_page from admin_menu hook?
plugin.php seems to load before functions.php. I'm running a child theme of ET's Harmony theme. But just an unadulterated wp setup.
Oct
16
comment Why is my css and js not enqueued until footer?
Good guess, but jquery is loaded in the head. And that wouldnt account for the css.
Oct
16
comment Why is my css and js not enqueued until footer?
@Otto, Ahh... I see! $wp_query->post Seems to be populated before action:'wp'. And I dont need the filters, just the ID and or post_parent. This may solve the question, yes?
Oct
16
comment Why is my css and js not enqueued until footer?
$in_footer is default to false. Therefore, I am wanting it to be in the header, by not specifying. However, I am too late.
Oct
16
comment Why is my css and js not enqueued until footer?
$pageparent is just an ID that I set outside the action. It's nothing to do with the question. either is urlto.
Oct
16
comment Why is my css and js not enqueued until footer?
I'm just tryna not include css/js everywhere when only these few pages need it. So, is_single() will work before $post is setup? That seems counter-intuitive.
Oct
16
comment Why is my css and js not enqueued until footer?
Ok, so this is just the way it has to be, then? Is there a problem with inlcuding js and css in the footer? FOUC?
Jun
4
comment Plugins in symlinked directories?
Ok, use the filter...but how? what would the function be to correct the url?
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.
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.