↧
WordPress Code: Earlier Shortcodes
WordPress shortcodes run at priority 11 which is after wpautop(), wptexturize(), and other various default filters. While this can be desirable so that wpautop() doesn’t affect the output of the...
View ArticleCreating Simple oEmbed-Based WordPress Shortcodes
Say you wanted to create a shortcode like this: [youtube id="991WcoEPwb8"] And instead of manually creating the HTML yourself, you wanted to use YouTube’s oEmbed provider to get the HTML. While that’s...
View ArticleDisplaying Shortcodes
Have you ever wanted to display a shortcode in a post? i.e. like this: [gallery] It’s actually quite simple thanks to a little-known feature of WordPress. All you need to do is double up on the...
View Article