Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wp get post id by slug

url_to_postid( site_url('the_slug') );
Source by wordpress.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #wp #post #id #slug
ADD COMMENT
Topic
Name
7+7 =