I'm newbie, i have a simple php file ,there is my data like, title, body content, feature image, category and 1 custom file I want to save this data in my post My coding look like this
$title="my title";
$content="demo body content";
$image="google/some-image-path.jpg";
$category="tesy cate";
$custom_post_filed="test custom filed";
I have code like this, i havr this content in my front-end.php Please any brother help me how to this content automatically publish in my post, if conditions must apply please, thanks in advance