Get post slug from post ID January 6, 2022 This post brought to you by RocketGeek, ButlerBlog, and the following: $post_id = 7; $slug = get_post_field( 'post_name', $post_id );