Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to get the current page id in wordpress using jquery

$(document).ready(function() {
        
        if ($("body").hasClass("page-id-3202")) {   
            //code here
        }
    });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #current #page #id #wordpress #jquery
ADD COMMENT
Topic
Name
9+2 =