Return to Snippet

Revision: 13865
at May 8, 2009 15:24 by TimHaslam


Initial Code
<body class="<?php echo get_post_meta(url_to_postid($_SERVER['REQUEST_URI']), 'class', true); ?>">

Initial URL


Initial Description


Initial Title
WordPress - Assign a class or id to the body of a page/post

Initial Tags
wordpress

Initial Language
PHP