101 reputation
110
bio website
location
age
visits member for 2 years, 5 months
seen 5 hours ago

Jun
23
revised hijacking home_url for root relative paths
typo
Jun
23
asked hijacking home_url for root relative paths
May
27
comment post_class() breaks out of formatting. . . extra markup also generated
Ahh - wordpress.org/support/topic/… Even though the image is already contained in a div, WP dosen't know it - so it automatically wraps it in a <p> to make valid markup. Adding wrapping <div> tags to my function prevents this - though completely superfluous markup IMHO. - I was conflating the two issues as they were appearing concurrently. Still would love to know why post_class() dosen't play nice.
May
27
awarded  Commentator
May
27
comment post_class() breaks out of formatting. . . extra markup also generated
Further substituting post_class() with something like 'class="' . implode(get_post_class($class)) . '" dosen't solve the added <p> elements which are being injected into the markup.
May
27
comment post_class() breaks out of formatting. . . extra markup also generated
Thanks, but I went to the codex first, Im not being lazy here - honest. I wouldn't waste your time if the answer was evident (to me). My question still stands - In this use case post_class is exactly what I want - I want it to spit out class="some list" so why dosent it output where I've placed it in the markup? - what's gong on? Otherwise we would use get_post_class() in all cases - no? I didn't use get_post_class() because I dont need to further process the array, which is as I understand, what it is for.
May
27
comment Wordpress Beginer to Guru
I take your point - I was being sloppy in my use of language. What should we call WPSE though? It has most of the atributes of a forum even if its spirit is different.
May
26
answered Wordpress Beginer to Guru
May
26
asked post_class() breaks out of formatting. . . extra markup also generated
Apr
11
comment filter get_children to return all mime types EXCEPT 'x'
yup! that's a typo - should read if($mime !== 'audio/mpeg' || $mime !== 'audio/ogg') –– I've corrected it.
Apr
11
revised filter get_children to return all mime types EXCEPT 'x'
typo
Apr
11
asked filter get_children to return all mime types EXCEPT 'x'
Apr
11
answered embed the_content
Apr
11
awarded  Supporter
Apr
9
comment embed the_content
I'm beginning to realise the issue is with apply_filters('the_content', $value ); these folks were having the same problem which they solved with a custom field as well. . .
Apr
9
comment embed the_content
thanks for this. A really interesting implementation and I'll spend some more time with this in the morning (1 am here in Scotland, happy Easter btw). Im not sure, for all the same reasons you mentioned, if I want to create and recreate an oEmbed wrapper. For one, the meta keys all work well for me, and secondly - I won't know exactly which service folks will use (youtube/vimeo) so would rather get wordpress to detect the url as it would normally (if possible). It is processing the embed shortcode, just not detecting the naked url as a video link. Anyone know how or when that happens?
Apr
7
asked embed the_content
Apr
4
accepted wp_upload_dir how to get just the directory name .
Apr
4
comment wp_upload_dir how to get just the directory name .
- thanks to both of you there. basename and after some research wp_basename too I'd reckon.
Apr
4
awarded  Editor