wordpress get page slug

To get the page slug in WordPress, you can follow these steps:

  1. Log in to your WordPress dashboard.

  2. Navigate to the "Pages" section and select the page for which you want to retrieve the slug.

  3. Once you are on the page editing screen, look at the URL in your web browser. The slug is the part of the URL that comes after the domain name and the forward slash (/).

  4. You can also find the page slug in the "Permalink" section of the page editing screen. The slug is the editable part of the permalink URL, typically located below the page title.

  5. Take note of the page slug for future reference or use it as needed within your WordPress website.