Posted By

TimHaslam on 05/08/09


Tagged

wordpress


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

tmbrenneke


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


 / Published in: PHP
 

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

Report this snippet  

You need to login to post a comment.