how to automatically add the id of a webpage to the url

Avatar
  • Answered
my website contains blog posts i wrote myself. But in order to submit and display comments for that particular article, my php code requires that add the id of the article to the url (for example www.myblog.com/whatisdb.php?id=1)
the problem is that i have to add the id myself in the browser, how the id automatically appear in the url.
Avatar
Scott
Hello, Thank you for your question on how to add the post ID to your URL. Without any specific information to go on, I can only answer generally. For WordPress, you would simply set your permalink settings to include what you desire. The 'plain' setting will include the post ID by default. Kindest Regards, Scott M