If I fetch my wordpress data with get_post, then post_content is unformatted. nl2br doesn’t really help, but there is a better solution:
$p = get_post($id);
apply_filters('the_content', $p->post_content);
I just LOVE WordPress!
I am Ophidia, programmer.
If I fetch my wordpress data with get_post, then post_content is unformatted. nl2br doesn’t really help, but there is a better solution:
$p = get_post($id);
apply_filters('the_content', $p->post_content);
I just LOVE WordPress!