Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Shortcode 1:

function blue_table($atts, $content = null) {
        return '<div class="blue-table">' . do_shortcode($content) . '</div>';
        return '';
    }

Shortcode 2:

function example_1($atts, $content = null) {
        return '<a class="skinny-popup1 button-example" href="#">example</a>';
    }

What I'm typing in editor:

[bluetable]Make sure that your wall posts elicit some form of feedback. Start the conversation, don't just push information.[example1][/bluetable]

Output for [bluetable] shortcode works, however [example] does not.

share|improve this question
how are you registering them? – One Trick Pony Sep 27 '11 at 20:00
codeadd_shortcode('bluetable', 'blue_table'); add_shortcode('example1', 'example_1');code – tblm Sep 27 '11 at 20:15

closed as too localized by toscho Jul 16 '12 at 23:31

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

1 Answer

It works for me, the test code im using is:

add_shortcode( 'example1', 'example_1' );
add_shortcode( 'bluetable', 'skinny_popup1' );
function skinny_popup1($atts, $content = null) {
        return '<div id="skinnypop1" class="skinnypop"><div class="msgbox"><div class="pop-top"><a class="close" href="#" >close</a></div><div class="pop-content"><div class="cycle-gallery">' . do_shortcode($content) . '</div></div><div class="cycle-nav"><a id="prev" class="ir" href="#">Previous</a><a id="next" class="ir" href="#">Next</a></div><div class="slidecopy"></div><div class="pop-btm"></div></div></div>';
    }

function example_1($atts, $content = null) {
        return '<a class="skinny-popup1 button-example" href="#">example</a>';
    }

Maybe a typo on the function name?

share|improve this answer
Ugh I feel silly, you were right. I got myself lost in a jungle of shortcodes. – tblm Sep 27 '11 at 20:22

Not the answer you're looking for? Browse other questions tagged or ask your own question.