96 reputation
9
bio website
location
age
visits member for 2 years, 1 month
seen Mar 14 at 15:53

Jun
26
comment WordPress MultiSite Active Directory integration and site privacy
How did you get on with this? Im researching a similar implementation for a school.
Mar
25
answered Serve apache 404 for missing assets rather then wp 404 template WP_Rewrites
Mar
23
asked Serve apache 404 for missing assets rather then wp 404 template WP_Rewrites
Mar
3
comment Conditionally Loading JavaScript/CSS for Shortcodes
bit of an aside but doesn't this assume that people are using header.php and footer.php. What about theme wrapping methods such those described by scribu.net/wordpress/theme-wrappers.html ? or themes like roots that keep their template parts elsewhere?
Feb
8
comment How to replace regular jquery calls with CDN calls from Google?
just noticed this nice little hack has been folded into the wordpress Roots theme - sweet github.com/retlehs/roots/blob/master/lib/scripts.php
Jan
11
accepted passing markup thought a shortcode attribute
Jan
10
comment passing markup thought a shortcode attribute
Sorry thought it was in the thread - the preview is a tinyMCE modal that allows the user to set parameters and see the changes in a live map. It then inserts the shortcode into the post. Transients are uncharted territory for me, so I was wondering if there was an easer way to handel my situation - hence my first attempt at shoving all the markup though a parameter! You've been very helpful by the way - thanks.
Jan
9
comment passing markup thought a shortcode attribute
Yes in some ways but it need not call the google API for marker data each time. Consider: a) at the preview stage we ping the API and pull associated address, content, images, ratings etc. and store that content/markup in the database for later use (ie we just add that content to a marker in the map - no api call needed) or B) only store the address and make a new api call each time the page is loaded. Option 'B' will, I believe be significantly slower. This is why Im still considering the WP transients API to store the details rather then shoving them explicitly as parameters in the shortcode
Jan
8
comment passing markup thought a shortcode attribute
Sorry for the late reply - Holidays took me by storm (literally in some respects). I'll follow your advice and break up the parameters as you've suggested. I was just hoping that there might be another way to go about it. Basically the maps API can grab a bunch of unknown items like ratings etc if they exist for the location in question. I just hoped I could get the output at the preview stage, without the plugin having to make another request later (or each time it was called).
Jan
8
comment passing markup thought a shortcode attribute
s_ha_dum, fabulous write up.
Dec
26
asked passing markup thought a shortcode attribute
Aug
6
awarded  Tumbleweed
Aug
3
answered Using wp_enqueue_script on shortcode function handler
Jul
30
asked Proper use of the_content filtering
Jun
24
comment hijacking home_url for root relative paths
FYI this query is related to github.com/retlehs/roots/issues/490
Jun
24
comment hijacking home_url for root relative paths
I revised get_home_url and tried it in a functionality plugin, as wellas in the functions.php of child and parent. function tr_get_home_url( $blog_id = null, $path = '', $scheme = null ) { $orig_scheme = $scheme; $scheme = 'http'; $url = '/'; if ( !empty( $path ) && is_string( $path ) && strpos( $path, '..' ) === false ) $url .= '/'; return apply_filters( 'home_url', $url, $path, $orig_scheme, $blog_id ); } With no effect––So I guess that this would mean that home_url is already being filtered elsewhere in the theme?
Jun
24
comment hijacking home_url for root relative paths
Humm - I've done as much. Basically I revised get_home_url and put it in a functionality plugin, just to see.
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.