title: How to add Javascript in WordPress Posts using Custom Fields
body: <p>I want to implement both css and javascript codes inside individual posts, I got the wordpress php code to enable css custom fields</p>
  
  <pre><code>&lt;?php if (is_single()) {
  $css = get_post_meta($post-&gt;ID, 'css', true);
  if (!empty($css)) { ?&gt;
      &lt;style type="text/css"&gt;
      &lt;?php echo $css; ?&gt;
      &lt;/style&gt;
  &lt;?php }
      } ?&gt;
  </code></pre>
  
  <p>I just want a similar code to enable Javascript custom fields in Posts, I don't want to use plugins for this.</p>