[wp-hackers] nested shortcode
Charles K. Clarkson
cclarkson at htcomp.net
Thu Jan 22 21:00:39 GMT 2009
Viper007Bond wrote:
> Shortcodes are not the best way to do what you are trying to accomplish. Use
> a generic the_content filter and just check for the existence of
> "[addmyclass]" in the post. If found, regex the images and remove the tag.
You could add your class to the div surrounding the post and then
use a CSS selector to do the grunt work of finding img tags. You would
only have to find one match.
.myclass img {
/* same as current img.myclass */
}
HTH,
Charles Clarkson
--
Mobile Home Investor
Free Market Advocate
Programmer
Stephenville, TX
http://www.clarksonenergyhomes.com/wordpress/about/
http://twitter.com/CharlesClarkson
+1 (254) 968-8328
More information about the wp-hackers
mailing list