Nested shortCode functions in the functions.php file

I’m trying to get a shortcode function (newStuff) to display inside of another function (oldStuff), but I’m running into trouble. Both shortCode functions are listed below, as well as what I’ve tried. Can someone please help me get the “newStuff” function displaying inside of the “oldStuff” function? Thanks! Current Functions function newStuff(){ return ‘ only … Read more

shortcodes displaying outside of content area with echo statement, not what I wanted [duplicate]

This question already has answers here: Closed 10 years ago. Possible Duplicate: Shortcode always displaying at the top of the page I have my shortcode system set up fairly normally, like so: //[carouselle] function carouselle_func( $atts ){ return “foo and bar”; } add_shortcode( ‘carouselle’, ‘carouselle_func’ ); But when I do the same thing but with … Read more

stray elements

I coded a wordpress shortcode for columns that basically inserts html via a shortcode. Problem is that wpautop adds stray p elements that renders the code invalid. To test put this into your functions.php: function static_col_container($atts, $content) { extract(shortcode_atts(array( ‘foo’ => ‘bar’ ), $atts)); $content = do_shortcode($content); $container=”<div class=”static-column-container”>” . $content . ‘</div>’; return $container; … Read more