In this tips i show you how to add jQuery in your wordpress post, it is easy but little tricky. Please follow steps to do this

Step 1. Login to your wordpress dashboard.

Step 2. Add new post in your wordpress, Now click on Screen Options > Custom Fields

Add jquery in wordpress post

Step  3.  Add your jQuery in your custom field

Add jQuery in wordpress post

Step 4. Now in this step open your them header.php and add the following code in your header to load your jQuery

<?php 
  if( is_single() and $myPostJquery = get_post_meta($post->ID, '<YOUR_CUSTOM_FIELD_NAME>', true) )
   echo $myPostJquery;
?>

replace name in above code with your code.

For live demo please follow this post.

that’s all 🙂