How to insert code to header for a specific page only in wordpress?
/** * adding scripts for specific page/post with page id=17 (wpdevkt.in) */ function schemas_for_specifice_page(){ global $post; if($post->post_type == 'page' && $post->ID == '17'){ echo 'Your code here'; } } add_action('wp_head','schemas_for_specifice_page');
POST COMMENTS