435 reputation
631
bio website
location
age
visits member for 4 years, 6 months
seen Jul 17 at 19:07

Jun
24
comment Implementing Isomorphic JavaScript (React JS) in Wordpress?
Very extensive answer, thank you! I've begun fiddling with AngularJS together with WP and I'm having a bad time due to how permalinks etc works with WP. Ideally I will separate them and only use WP to serve the data and let Angular live as it's own app. I'm not quite certain how the file structure would work. Do you have any tips? Put Angular in root and WP in a subfolder? I want the URLs to make as much sense as possible site.com/wp-admin would be swell. Think I'll just use PhantomJS or what not to handle SEO from here on.
Jun
20
comment Dequeue set-post-thumbnail.min.js
Hm, it's still working. From what I can tell I shouldn't be able to set new featured images without set-post-thumbnail. And that still works (not sure which file the script is put in, it's not enqueued on it's own, so it must be in a common.js or similar).
Oct
6
comment Wordpress with static posts page and custom permalink structure doesn't find posts with numeric permalinks
@Milo I applied that piece of code, but no luck..
Oct
6
comment Wordpress with static posts page and custom permalink structure doesn't find posts with numeric permalinks
@nothingtosee I've set the permalink to 99058672222 manually, the name is actually something else.
Oct
5
comment AJAX – SHORTINIT set to TRUE returns blank
Valuable information @G.M. Thanks!
Oct
4
comment AJAX – SHORTINIT set to TRUE returns blank
I totally get that, going with SHORTINIT and require what's needed will make the ajax run faster though. Gonna see if I can located what's needed.
Oct
4
comment AJAX – SHORTINIT set to TRUE returns blank
Doh. Yeah, loaded up formatting.php and it seems to get me further. Seems do_actions is holding me up. I've included plugin.php and pluggable.php aswell, but it won't work, and from what I understand I shouldn't need more?
Oct
4
comment AJAX – SHORTINIT set to TRUE returns blank
is it the is_user_logged_in that's causing problem? I tried putting a die('hello'); before that check but it still came back blank.
Jun
16
comment Post type specific upload folder in 3.5
@chrisguitarguy Tried this if($type == 'post') { $type == 'customfolderforposts'; } But no luck. Any ideas?
May
19
comment URLs ending with number higher than 2147483647 redirects to to domain.com/2147483647
Deleted the page named "subpage" and it's now working as I want (no redirect).
May
19
comment URLs ending with number higher than 2147483647 redirects to to domain.com/2147483647
I think the problem is that Wordpress(?) intercepts and redirects before I can do anything at all, let alone saving the Tumblr post id via window.location.pathname...
May
19
comment URLs ending with number higher than 2147483647 redirects to to domain.com/2147483647
2147483648 is redirected, but not anything beneath.
May
19
comment URLs ending with number higher than 2147483647 redirects to to domain.com/2147483647
@s_ha_dum Alright. But I'm still curious how to apply it. Since 84708495222 is just an example. How do I catch any other case? I noticed most examples talks about /subpage/<catcher>. Where catcher is static. Btw /subpage/9999 and /subpage/omg is not redirected. Leads me to think it's more about Wordpress not being able to handle large ints? core.trac.wordpress.org/ticket/16445
May
19
comment URLs ending with number higher than 2147483647 redirects to to domain.com/2147483647
@s_ha_dum Hm, is the purpose of an endpoint that it's "outside" Wordpress? I.e. it doesn't apply rewrites and acts more like a standalone page?
May
19
comment URLs ending with number higher than 2147483647 redirects to to domain.com/2147483647
subpage is a page. Merely a placeholder actually, I created it because I got 404 (the data on subpageis fetched via javascript aswell)
May
19
comment URLs ending with number higher than 2147483647 redirects to to domain.com/2147483647
It's a reference to a Tumblr post. The purpose with the whole thing is that the javascript checks the URL for a valid reference, if it's found, the content of the Tumblr post is fetched via ajax, so the number needs to be intact..
Feb
19
comment File input returns null in theme options array
@fischi I've progressed a bit and thus have created a new question with simplified code (although should be working this time) here: wordpress.stackexchange.com/questions/135186/…
Dec
16
comment Can't seem to get wp_localize_script to work
@s_ha_dum Tried your code but it doesn't seem to be working. I want to add some PHP vars to be used with JS without tying it to a specific script.. And nothing gets printed by your suggestion. Hm.
Dec
1
comment Is_single() conditional tag returns null in query
I appreciate your answer @Milo but since you answered at the same time as s_ha_dum and his answer is more elaborate I have to go with that one. Thanks alot though!
Dec
1
comment Is_single() conditional tag returns null in query
Also I need to get the categories and tags of these posts. Is that possible even?