Tue May 18 2021 20:40:28 GMT+0000 (Coordinated Universal Time)
Saved by @Shesek
/* Create Page Slug Shortcode*/ function page_slug_shordcode(){ $slug = get_post_field( 'post_name'); echo $slug; } add_shortcode( 'pageslug', 'page_slug_shordcode' );
Copy this HTML code:
Preview:
open_in_newInstructions on embedding in Medium
Comments