• Resolved Donquiweb

    (@donquiweb)


    Hi,

    I want to display the content of the pages / posts in 2 columns with this solution :http://www.kriesi.at/archives/wordpress-display-content-in-multiple-columns

    my code (it works)
    ——–

    function my_multi_col($content){
    $columns = explode('[!--break--]', $content);
    $i = 0;
    	foreach ($columns as $column){
    		if (($i % 2) == 0) {
    
    		$return .= '<div id="colonne1">';
    		}
    		else {
    		$return .= '<div id="colonne2">';
    		}	
    
    		$return .= $column;
    		if ($i < 1){
    		$return .= '</div>';
    			}
    		else {
    		$return .= '</div>';
    		}
    		$i++;
    	}
    
    	if(isset($columns[1])) {
    	    $content = wpautop($return);
    	}
    	else {
    	    $content = wpautop($content);
    	}
    	echo $content;
    }
    
    add_filter('the_content', 'my_multi_col');

    When I apply the add_filter(‘the_content’, ‘my_multi_col’); on the content, wordTube can’t replace [playlist id=1] by the script to show the flash player.

    So, does somebody know how I can resolve this? (WordTube works fine with WP 2.6)

    Regards.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: wordTube] WordTube bug with add_filter() to display content in 2 column’ is closed to new replies.