I want to get \"abc_15_11_02_3\" from http://example.com/project_name/abc_15_11_02_3/. How can i do this?
this simple code worked for me:
$postId = get_the_ID(); $slug = basename(get_permalink($postId)); echo $slug;