Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get the current page id in wordpress

$page_id = get_queried_object_id();
Source by wordpress.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #current #page #id #wordpress
ADD COMMENT
Topic
Name
4+5 =