/ Published in: PHP
Expand |
Embed | Plain Text
<?php function function_name() { global $wp_query; $thePostID = $wp_query->post->ID; } $pageid = $post->ID; if ($pageid == 69) { ?> <div id="header" id="69"></div> <?php } elseif ($pageid == 31) { ?> <div id="header" id="31"></div> <?php } else { ?> <div id="header"></div> <?php } ?>
You need to login to post a comment.
