How Do I Get the Current Page Slug in WordPress?

There are a few ways to get the current page slug in WordPress:

1. Use the wp_title() function to get the current page title.

2. Use the get_current_page_slug() function to get the slug for the current page.

3. Use the get_the_title() function to get the WordPress title.

4. Use the get_the_title_attribute() function to get the title attribute for the current post or page.

5. Use the get_post_thumbnail() function to get the thumbnail for the current post or page.

6. Use the get_post_meta() function to get the meta data for the current post or page.

7. Use the get_the_post_meta_value() function to get the meta data for the current post or page.

8. Use the get_posts() function to get the posts on the current page.

9. Use the get_pages() function to get the pages on the current site.

10. Use the get_the_modified_date() function to get the modified date for the current page or post.