I have created the following shortcode code: <?php function box_handle($atts, $content=”) { extract( shortcode_atts(array( ‘size’ […]
Tag: shortcode
Problem return a function inside of a shortcode in WordPress
I have some trouble coding a themes shortcode. I want the code to display a […]
How to create a WordPress shortcode-style function in PHP
I am trying to create a WordPress shortcode-style feature in PHP to replace shortcodes like […]
Nested Shortcode Detection
If you are familiar with this code <?php $pattern = get_shortcode_regex(); preg_match(‘/’.$pattern.’/s’, $posts[0]->post_content, $matches); if […]
How to customise the output of the WP image gallery shortcode from a plugin?
We’re building a plugin that displays posts, and we also want to display the image […]
Styling Shortcodes in Visual Editor
Does anyone know how to style the visual editor so that when specific shortcodes are […]
Pass variable to nested shortcode
I’m setting up a plugin with a nested shortcode, i.e. [ct_training_group] [ct_training] [/ct_training_group] Here’s the […]
Shortcodes attributes defaults
I use this construction to implement my own shortcode: function column_with_icon($atts, $content = null) { […]
Replace WordPress shortcode containing id with html markup using the id
I’m building a filter plugin in WordPress and I’m replacing some plugin specific tags with […]
Allowing For Custom Images Sizes with WordPress’s Gallery Shortcode
In WordPress 2.5 and up, there’s a built in Gallery feature that allows the option […]
No More Posts Available.
No more pages to load.