WordPress.org

Support

Support » Themes and Templates » dynamic_sidebar not returning/echoing/printing HTML, need help…

dynamic_sidebar not returning/echoing/printing HTML, need help…

  • Can anyone explain why these code snippets wouldn’t echo/print/return this function with the li tags? In fact, nothing I try to execute (except for the function) prints out!

    if ( !dynamic_sidebar( 'right_column_on_two_column_layout' ) ) {
    	return "<li>" . dynamic_sidebar( 'right_column_on_two_column_layout' ) . "</li>";
    }
    if ( !dynamic_sidebar( 'right_column_on_two_column_layout' ) ) {
    	echo "<li>" . dynamic_sidebar( 'right_column_on_two_column_layout' ) . "</li>";
    }
    if ( !dynamic_sidebar( 'right_column_on_two_column_layout' ) ) {
    	echo "<li>";
    	dynamic_sidebar( 'right_column_on_two_column_layout' );
    	echo "</li>";
    }

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘dynamic_sidebar not returning/echoing/printing HTML, need help…’ is closed to new replies.
Skip to toolbar