Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter alisko

    (@alisko)

    i solved the problem like that. i dont use $post->post_content. it is unnecessary. anyway you get formated content from the function.

    function like_content($content) {
    	global $post;
                    $original = $content;
    		$content = "<div class=\"ikaz\">";
    		$content .= "hello all";
    		$content .= "</div>";
    		$content .= $original;
    return $content;
    }
    add_filter( 'the_content', 'like_content' );
Viewing 1 replies (of 1 total)