brasofilo

Loop in the head

Dec 21st, 2012
68
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <head>
  3. <title>
  4. if (have_posts()) : while (have_posts()) : the_post();
  5.     $data = maybe_unserialize(get_post_meta( $post->ID, 'option_name', true )); // Call custom page attributes  
  6. endwhile; endif;
  7. <body>
RAW Paste Data