i'm new in php and want to show page content into a div. The call of the content is using function, here is my code but it doesnt works, how can I fix it?
function fields_after_order_details(){
echo '<div class="tandc">'.
$my_id = 2731;
$post_id_2731 = get_post($my_id, ARRAY_A);
$title = $post_id_2731['post_content'];
.'</div>';
}
ARRAY_A
?