You can use Function Reference/set post type
<?php
$post_id = 15;
if ( set_post_type( $post_id, 'page' ) ) {
echo "Post #$post_id is now a Page";
} else {
echo "Impossible to transform this post into a page";
}
?>
You can use Function Reference/set post type
<?php
$post_id = 15;
if ( set_post_type( $post_id, 'page' ) ) {
echo "Post #$post_id is now a Page";
} else {
echo "Impossible to transform this post into a page";
}
?>