head_hook by page ID
-
Hi,
I want to insert some hooks by page id’s …
I am using this right now:if ( is_page('4') ); function add_meta_keyword() { echo '<meta name="keyword" content="content here" />'; } add_action('wp_head', 'add_meta_keyword');
The problem is that
if ( is_page('4') );
is not working because it is being shown no matter what page ID I put there.I have used this also
/* head hook keywords */ add_action( 'wp_head','carlos_head_keyword' ); function carlos_head_keyword() { ?> <meta name="keyword" content="content here" /> <?php }
But when trying to use if page ID, it doesn’t work either.
How can I insert hooks by page ID?
Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘head_hook by page ID’ is closed to new replies.