DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
7+7 =
Submit