396 reputation
422
bio website
location
age
visits member for 3 years, 7 months
seen 7 hours ago

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?
Dec
1
comment Is_single() conditional tag returns null in query
Thanks, but if I use $post->ID rather than $loop->post->ID it gives me nothing..
Sep
16
comment Allowing access to certain Wordpress created pages or posts with htaccess / htpasswd
@Rarst You might be right. The reason I posted here was because there's already some .htaccess interaction happening within Wordpress, how posts and pages are assigned. Thus I figured it's somehow Wordpress specific how htaccess handles these rewrites.
Mar
31
comment How to create a multidimensional array with multiple loops
Thank you so much! You are right that isn't a specific Wordpress question. But I still decided to put it here rather than on Stack Overflow since there are alot of WP specific stuff in this particular case. Thanks again!
Jan
6
comment Adding Custom Styles to the MCE dropdown toolbar
I'm experiencing the same problem. @MihaRekar If I check HTML there's nothing wrapping the selected portion of text.
Dec
7
comment Remove parent slug for child pages
I don't think it does it automatically though..
Nov
26
comment Conditionally load CSS/JS/PHP in wp-admin if using a mobile device
@JohannesPille In this specific case s_ha_dum's solution was what I was looking for although I recognize there's flaws to this method I know for a fact the the client only uses an iPhone or other iOS device to access the site and thus I tailored it to work for those devices. This is not ideal I know, but it saved me time.
Nov
26
comment Categories and products in random order
Where do you put this code?
Nov
26
comment Sorting Woocommerce products with numeric titles
I realize it's impossible for you to know what's wrong for my particular install. I will try and work with the MySQL solution instead. Could you please elaborate a little on how I can filter the results via MySQL for Woocommerce? I'm not sure where I should put any code or tie in with Woocommerce for this matter.