Is this the correct way to add post-slug input field?

If the slug exsit WordPress will add a number to the end. For example if you had two post named “test” you would get “test” and “test-1”

Hope that helps

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)