I m writing simple script using wp_insert_post()
to post article in blog.
but one problem here, I want to make Title and slug of an URL different.
How to achieve this?
for example:
Title: How to make your diet success
Slug: 7-ways-to-make-succes-Diet
post_title sets the title, and post_name sets the slug. So: