126 reputation
113
bio website
location
age
visits member for 2 years, 10 months
seen Sep 22 at 7:05

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.
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.