BB-Code-like mechanism by which strings enclosed in square brackets can serve as shorthand for longer and more complicated strings. These strings are processed by callback handlers, usually on page load, which replace the bracket enclosed string with the output from the callback handler.

learn more… | top users | synonyms (2)

5
votes
2answers
381 views

How would I create a plugin for my shortcodes?

All tutorials I have found say to add your shortcodes to functions.php in your theme. I would like to break that away from my theme and put that in a plugin so I can share these shortcodes between my ...
0
votes
2answers
145 views

Plugin that provides the [edit] shortcode?

Several months ago, I was browsing around the Internet and came across a WordPress site that had updates on the posts enclosed in [edit]...[/edit]. Obviously this was a function provided by a plugin ...
0
votes
2answers
2k views

How to get shortcode to work inside a foreach loop called within a shortcode?

My plugin, WP Coda Slider, uses a shortcode to get_posts and add them to the slider. If one of the posts contains shortcode the shortcode in that post will not work. $my_wpcodaslider = new ...
2
votes
3answers
430 views

How do I add my own custom shortcodes?

I'm looking to reuse some small portions of html inside several pages/post but I don't know how to obtain this on WordPress. It would be nice if I could have a helper in the editor to include them, ...
1
vote
2answers
179 views

Use shortcodes in terms description? [closed]

Anyone knows a way of using shortcodes on terms description? This is possible?
0
votes
1answer
816 views

How to display a shortcode caption somewhere other than the_content

I want to disable shortcode captions for posts in one of my themes, and display the content elsewhere, such as in a sidebar. The images aren't uploaded to wordpress, but they're linked-to using the ...