Example One
<?php if(!is_paged()) { ?>
<?php
$args = array( 'post_type' => 'slider-items', 'posts_per_page' => 6 );
$loop = new WP_Query( $args );
?>  
<?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
<div class="pc_item"> 
<?php the_post_thumbnail('slider-image'); ?>
</div>
<?php endwhile; ?>
<?php wp_reset_query(); ?>
<?php } ?>

OR
<?php if(!is_paged()) { ?>
<?php
$args = array( 'post_type' => 'slider', 'posts_per_page' => 4 );
$loop = new WP_Query( $args );
?>
<?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
<li>
<?php the_post_thumbnail('slider-image', array('class' => 'postthumbnails')); ?>
</li>
<?php endwhile; ?>
<?php wp_reset_query(); ?>
<?php } ?>

Example Two

   <ul class="slides">

<?php
global $post;
$args = array( 'posts_per_page' => 4, 'post_type'=> 'slider-items');
$myposts = get_posts( $args );
foreach( $myposts as $post ) : setup_postdata($post); ?>

<?php $slider_image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'slider-thumb' ); ?>
<li data-thumb="<?php echo $slider_image[0]; ?>">
<?php the_post_thumbnail('slider-larger'); ?>
<?php the_content(); ?>
</li>
<?php endforeach; ?>

</ul>
<!--Markup--> 
<div>
    <h2>Contact form</h2>
    <div id="contact_form">
        <form action="" method="post" id="contact-form">
            <fieldset>
                <input type="hidden" name="owner_email" id="owner_email" value="firozsomaji@gmail.com" />
                <input type="hidden" name="serverProcessorType" id="serverProcessorType" value="php" />
                <input type="hidden" name="smtpMailServer" id="smtpMailServer" value="localhost" />
                <input type="hidden" name="stripHTML" id="stripHTML" value="true" />
                <div class="field">
                    <input name="name" id="name" type="text" class="text-input" value="Name:" onBlur="if(this.value=='') this.value='Name:'" onFocus="if(this.value =='Name:' ) this.value=''"  />
                    <label class="error" for="name" id="name_error">*This field is required.</label>
                    <label class="error" for="name" id="name_error2">*This is not a valid name.</label>
                </div>
                <div class="field">
                    <input name="email" id="email" type="text" class="text-input" value="E-mail:" onBlur="if(this.value=='') this.value='E-mail:'" onFocus="if(this.value =='E-mail:' ) this.value=''" />
                    <label class="error" for="email" id="email_error">*This field is required.</label>
                    <label class="error" for="email" id="email_error2">*This is not a valid email address.</label>
                </div>
                <div class="field">
                    <input name="phone" id="phone" type="text" class="text-input" value="Phone:" onBlur="if(this.value=='') this.value='Phone:'" onFocus="if(this.value =='Phone:' ) this.value=''" />
                    <label class="error" for="phone" id="phone_error">*This field is required.</label>
                    <label class="error" for="phone" id="phone_error2">*This is not a valid phone number.</label>
                </div>
                <div class="field1">
                    <textarea name="message" id="message" class="text-input" onBlur="if(this.value=='') this.value='Message:'" onFocus="if(this.value =='Message:' ) this.value=''"  >Message:</textarea>
                    <label class="error" for="message" id="message_error">*This field is required.</label>
                    <label class="error" for="message" id="message_error2">*The message is too short.</label>
                </div>
                <div class="container">
                <div class=" fright"><a id="clear" class="button1">reset</a><div class="indent-3"><a id="submit" class="button1">submit</a></div></div>                    
                </div>
            </fieldset>    
        </form>
    </div>
</div>
     
<!--jQuery--> 
<script type="text/javascript">
$(function(){
    $('.error').fadeOut(0);
     
    // reset form and hide all errors
    $("a#clear").click(function(){
        $('.error').fadeOut(0);
        $('form#contact-form').clearForm();
    });
     
    // show message error if after editing 
    // the name field contains improper value 
    $("input#name").blur(function(){
        if(validateInput('name')){
            if(!validateName()){
                $("label#name_error").fadeOut(0);
                $("label#name_error2").fadeIn(250);
            }
        }else{
            $("label#name_error2").fadeOut(0);
        }
    });
     
    // show message error if after editing 
    // the email field contains improper value 
    $("input#email").blur(function(){
        if(validateInput('email')){
            if(!validateEmail()){
                $("label#email_error").fadeOut(0);
                $("label#email_error2").fadeIn(250);
            }
        }else{
            $("label#email_error2").fadeOut(0);
        }
    });
     
    // show message error if after editing 
    // the phone field contains improper value 
    $("input#phone").blur(function(){
        if(validateInput('phone')){
            if(!validatePhone()){
                $("label#phone_error").fadeOut(0);
                $("label#phone_error2").fadeIn(250);
            }
        }else{
            $("label#phone_error2").fadeOut(0);
        }
    });
     
    // show message error if after editing 
    // the message field contains improper value 
    $("textarea#message").blur(function(){
        if(validateTextArea('message')){
            if(!validateMessage()){
                $("label#message_error").fadeOut(0);
                $("label#message_error2").fadeIn(250);
            }
        }else{
            $("label#message_error2").fadeOut(0);
        }
    });
     
    $("input#name").keydown(function(){
        if(validateInput('name')){
            $("label#name_error").fadeOut(0);
        }
        if(validateName()){
            $("label#name_error2").fadeOut(0);
        }
    });
     
    $("input#email").keydown(function(){
        if(validateInput('email')){
            $("label#email_error").fadeOut(0);
        }
        if(validateEmail()){
            $("label#email_error2").fadeOut(0);
        }
    });
     
    $("input#phone").keydown(function(){
        if(validateInput('phone')){
            $("label#phone_error").fadeOut(0);
        }
        if(validatePhone()){
            $("label#phone_error2").fadeOut(0);
        }
    });
     
    $("textarea#message").keydown(function(){
        if(validateTextArea('message')){
            $("label#message_error").fadeOut(0);
        }
        if(validateMessage()){
            $("label#message_error2").fadeOut(0);
        }
    });
     
    var owner_email = $("input#owner_email").val();
    if(!isValidEmailAddress(owner_email)){
        $('#contact_form').html("<label class='error'>*Owner email is not valid</label>")
    }
         
    $("a#submit").click(function(){
        // validate and process form 
        var quit = false;
        if(validateName()){
            name = validateName();
            $("label#name_error").fadeOut(0);
            $("label#name_error2").fadeOut(0);
        }else if(validateInput('name')){
            $("label#name_error").fadeOut(0);
            $("label#name_error2").fadeIn(250);
            quit = true;
        }else{
            $("label#name_error").fadeIn(250);
            $("label#name_error2").fadeOut(0);
            quit = true;
        }
        if(validateEmail()){
            email = validateEmail();
            $("label#email_error").fadeOut(0);
            $("label#email_error2").fadeOut(0);
        }else if(validateInput('email')){
            $("label#email_error").fadeOut(0);
            $("label#email_error2").fadeIn(250);
            quit = true;
        }else{
            $("label#email_error").fadeIn(250);
            $("label#email_error2").fadeOut(0);
            quit = true;
        }
        if(validatePhone()){
            phone = validatePhone();
            $("label#phone_error").fadeOut(0);
            $("label#phone_error2").fadeOut(0);
        }else if(validateInput('phone')){
            $("label#phone_error").fadeOut(0);
            $("label#phone_error2").fadeIn(250);
            quit = true;
        }else{
            $("label#phone_error").fadeIn(250);
            $("label#phone_error2").fadeOut(0);
            quit = true;
        }
        if(validateMessage()){
            message = validateMessage();
            $("label#message_error").fadeOut(0);
            $("label#message_error2").fadeOut(0);
        }else if(validateTextArea('message')){
            $("label#message_error").fadeOut(0);
            $("label#message_error2").fadeIn(250);
            quit = true;
        }else{
            $("label#message_error").fadeIn(250);
            $("label#message_error2").fadeOut(0);
            quit = true;
        }
        if(quit){
            return false;
        }
         
        var stripHTML = $("input#stripHTML").val();
        var smtpMailServer = $("input#smtpMailServer").val();
         
        var dataString = 'name=' + name + '&email=' + email + '&phone=' + phone + '&message=' + message + '&owner_email=' + owner_email + '&stripHTML=' + stripHTML + '&smtpMailServer=' + smtpMailServer;
         
        var serverProcessorType = $("input#serverProcessorType").val();
        if(serverProcessorType == 'asp'){
            fileExtension = 'ashx';
        }else{
            fileExtension = serverProcessorType;
        }
        var mailHandlerURL = "bin/MailHandler." + fileExtension;
        $.ajax({
            type: "POST",          
            url: "contact.php",
            data: dataString,
            success: function(){
                $('.error').fadeOut(0);
                $('form#contact-form').clearForm();
                $('#contact_form').html("<div>Contact form submitted!</div>").append("<br><label for='message'><strong>We will be in touch soon.</strong></label>").fadeOut(0).fadeIn(1500, function(){
                    $('#contact_form').append("<br><br><a id='back' onclick='window.location.reload(); return false;' class='button1'>back</a>");
                });
            }          
        });    
        return false;
    });
});
$.fn.clearForm = function(){
    return this.each(function(){
        var type = this.type, tag = this.tagName.toLowerCase();
        if (tag == 'form'){
            return $(':input',this).clearForm();
        }
        if (type == 'text' || type == 'password' || tag == 'textarea'){
            this.value = '';
        }else if (type == 'checkbox' || type == 'radio'){
            this.checked = false;
        }else if (tag == 'select'){
            this.selectedIndex = -1;
        }
    });
};
function isValidName(name){
    var pattern = new RegExp(/^[a-zA-Z'][a-zA-Z-' ]+[a-zA-Z']?$/);
     
    return pattern.test(name);
}
function isValidEmailAddress(emailAddress){
    var pattern = new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i);
     
    return pattern.test(emailAddress);
}
 
function isValidPhoneNumber(phoneNumber){
    var pattern = new RegExp(/^\+?(\d[\d\-\+\(\) ]{5,}\d$)/);
     
    return pattern.test(phoneNumber);
}
 
function validateName(){
    var name = $("input#name").val();
    if(isValidName(name)){
        return name;
    }else{
        return false;
    }
}
 
function validateEmail(){
    var email = $("input#email").val();
    if(!isValidEmailAddress(email)){
        return false;
    }else{
        return email;
    }
}
 
function validatePhone(){
    var phone = $("input#phone").val();
    if(!isValidPhoneNumber(phone)){
        return false;
    }else{
        return phone;
    }
}
 
function validateMessage(){
    var message = $("textarea#message").val();
    if(message.length <= 19){
        return false;
    }else{
        return message;
    }
}
 
// make sure visitor does not input a blank field 
function validateInput(field){
    var fieldObject = $("input#" + field + "").val();
    if(fieldObject.length < 1){
        return false;
    }else{
        return true;
    }
}
 
function validateTextArea(field){
    var fieldObject = $("textarea#" + field + "").val();
    if(fieldObject.length < 1){
        return false;
    }else{
        return true;
    }
}
</script>
 
 
<!--PHP--> 
<?php
 $to = "email@example.com";
 $subject = "Online services request from" ." ". $_POST['name'];
 $message = $_POST['message'] ."\n". "Name:" ." ". $_POST['name'] ."\n". "Phone Number:" ." ". $_POST['phone'];
 $from = $_POST['email'];
 
mail($to, $subject, $message, "From: $from");
 ?> 
You can display a search form anywhere on a WordPress site by including <?php get_search_form(); ?> in the template. Creating a custom search form in WordPress is super easy. Just create a new php file called searchform.php and save it in your theme directory. Then add your form code to the file.

<form action="<?php bloginfo('siteurl'); ?>" id="searchform" method="get">
<fieldset>
     <label for="s" class="screen-reader-text">Search for:</label>
     <input type="search" id="s" name="s" placeholder="Enter keywords" required />
      <input type="image" id="search submit" alt="Search" src="<?php bloginfo( 'template_url' ); ?>/images/searchicon.png />
</fieldset>
</form>

----------------OR----------------

<form role="search" method="get" id="searchform" action="<?php echo home_url( '/' ); ?>">
    <div><label class="screen-reader-text" for="s">Search for:</label>
        <input type="text" value="" name="s" id="s" />
        <input type="submit" id="searchsubmit" value="Search" />
    </div>
</form>
----------------OR----------------
Example-One:
Search form CSS:
form#searchform
         {
display:block;
width:255px;
height:20px;
position:absolute;
top:56px;
left:753px;
}
.searchbutton
       {
color: #0066ff;
border: 0px solid;
display:block;
width:45px;
height:20px;
background: #d2e4ff;
position:absolute;
top:0px;
left:202px;
-moz-border-radius-bottomright: 4px;
-moz-border-radius-topright: 4px;
-webkit-border-bottom-right-radius: 4px;
-webkit-border-top-right-radius: 4px;
font-size: 12px;
}

.searchbutton:hover
       {
background-color: #0066ff;
color: #ffffff;
font-size: 12px;
}

.searchfield
         {
background:url(/images/search-field-shadow.png) top left repeat-x #666666;
color: #eeeeee;
border: 0px solid;
position: absolute;
top:0px;
left:0px;
display:block;
width:200px;
height:20px;
-moz-border-radius-bottomleft: 4px;
-moz-border-radius-topleft: 4px;
-webkit-border-bottom-left-radius: 4px;
-webkit-border-top-left-radius: 4px;
font-size: 12px;
}

searchform.php:

<form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
<input type="text" value="<?php the_search_query(); ?>" name="s" id="s" class="searchfield" />
<input type="submit" id="searchsubmit" value="search" class="searchbutton"/>
</form>

Call function:
<?php get_search_form(); ?>
----------------OR----------------

Example-Two: create a separate template: freedom-search.php and paste the below code

<div class="widget freedom-seachform search" rol="search">
    <h3 class="widget-title">Search Form</h3>
<form role="search" action="<?php echo site_url('/'); ?>" method="get">
<input type="search" name="s" placeholder="Search: Enter  keywords hit enter"/>
<input type="hidden" name="post_type" value="freedom" /> <!-- // hidden 'your_custom_post_type' value -->
<input type="submit" alt="Search" value="Search" />
</form>
</div><!-- .search -->

 Load the template part into your template:
Now you can load that file into your template using get_template_part :

<?php get_template_part( 'search', freedom' ); ?>

Post Type Archive template:
To display the search results, WordPress will first look for archive-$posttype.php if you have it. Otherwise it will fall back to index.php. If you happen to use Hybrid Core you can also fall back to archive.php.
Note: make a file contact_form.php and paste the below code.

<?php
/*
Template Name: contact_form
*/
?>
<?php get_header(); ?>
 
<div id="content" class="narrowcolumn">
<!-- replaced contact start here -->
<span class="breadcrumbs"><a href="<?php echo get_option('home'); ?>/">Home</a> </span>
  <h2 class="title">Contact Us</h2>
  <?php
if(isset($_POST['Submit'])){ //check if user submitted the contact form
$error="";
 if($_POST['contact_name']=='')$error.="Name required.<br/>";
 if($_POST['contact_email']=='')$error.="Email required.<br/>";
 if($_POST['contact_phone']=='')$error.="Phone  required.<br/>";
 if($_POST['contact_comment']=='')$error.="Comment required.<br/>";
if($error!=""){
 //if any errors skip mailing and display the errors for users.
 echo "<span style='color:red'>$error</span>";
}else{
 // get admin email from wordpress default options
 $to=get_option('admin_email');
 $subject="One contact enquire at noblefligh re: ".$_POST['contact_reason'];
 $body="rn Hi Admin";
 $body.="rn You had an enquiry:";
 $body.="rn Regarding:t".$_POST['contact_reason'];
 $body.="rn Name: t".$_POST['contact_name'];
 $body.="rn Email: t".$_POST['contact_email'];
 $body.="rn Phone:t".$_POST['contact_phone'];
 $body.="rn Comment: rn ".$_POST['contact_comment'];
 // wordpress default handy mail function
 wp_mail( $to, $subject, $body);
 echo "<span style='color:green;'>your comment sent to admin successfully</span>";
 // display success message.
}
 
}
 ?>
  <form id="contact_form" name="contact_form" method="post" action="<?php echo the_permalink(); ?>">
    <table border="0">
      <tr>
        <td>About </td>
        <td><select name="contact_reason" id="contact_reason" style="width:145px;">
            <option value="Product">Product</option>
            <option value="Service">Service</option>
            <option value="Other">Other</option>
          </select>
        </td>
      </tr>
      <tr>
        <td>Name</td>
        <td><input name="contact_name" type="text" id="contact_name" style="width:145px" /></td>
      </tr>
      <tr>
        <td>Email</td>
        <td><input name="contact_email" type="text" id="contact_email" style="width:145px" /></td>
      </tr>
      <tr>
        <td>Phone</td>
        <td><input name="contact_phone" type="text" id="contact_phone" style="width:145px" /></td>
      </tr>
      <tr>
        <td>Comment</td>
        <td><textarea name="contact_comment" id="contact_comment" style="width:300px"></textarea></td>
      </tr>
      <tr>
        <td colspan="2" align="center"><input type="submit" name="Submit" value="Submit" />
          <input type="reset" name="Submit2" value="Reset" /></td>
      </tr>
    </table>
  </form>
<!-- replaced content end here -->
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
functions.php
add_theme_support( 'post-thumbnails', array( 'post', 'slider') );
add_image_size( 'slider-image', 920, 347, true );

function create_post_type() {
register_post_type( 'slider',
array(
'labels' => array(
'name' => __( 'Slides' ),
'singular_name' => __( 'Slide' ),
'add_new' => __( 'Add New' ),
'add_new_item' => __( 'Add New Slide' ),
'edit_item' => __( 'Edit Slide' ),
'new_item' => __( 'New Slide' ),
'view_item' => __( 'View Slide' ),
'not_found' => __( 'Sorry, we couldn't find the Slide you are looking for.' )
),
'public' => true,
'publicly_queryable' => false,
'exclude_from_search' => true,
 // 'show_in_menu' => false,
'menu_position' => 14,
'has_archive' => false,
'hierarchical' => false,
'capability_type' => 'page',
'rewrite' => array( 'slug' => 'slide' ),
'supports' => array( 'title','editor','custom-fields',  'thumbnail' )
)
);

/*
register_post_type( 'portfolio',
array(
'labels' => array(
'name' => __( 'Portfolio' ),
'singular_name' => __( 'SlPortfoliode' ),
'add_new' => __( 'Add New' ),
'add_new_item' => __( 'Add New Slide' ),
'edit_item' => __( 'Edit Portfolio' ),
'new_item' => __( 'New Portfolio' ),
'view_item' => __( 'View Portfolio' ),
'not_found' => __( 'Sorry, we couldn't find the Portfolio you are looking for.' )
),
'public' => true,
'publicly_queryable' =>true,
'exclude_from_search' => true,
// 'show_in_menu' => false,
'menu_position' => 14,
'has_archive' => false,
'hierarchical' => false, 
'capability_type' => 'page',
'rewrite' => array( 'slug' => 'portfolio' ),
'supports' => array( 'title', 'thumbnail' )
)
);
                                      */
}
add_action( 'init', 'create_post_type' );

Uses:
<?php the_post_thumbnail('slider-image', array('class' => 'customimage')); 
?>
------------OR--------------
<img src="<?php $image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'slider-image'); echo $image[0]; ?> atl=""

Note: If you need to link with the slider image use custom field with it.
Example
Uses: Look the source<ul> Put the code </ul>
----------------------------------------------------------------------------
 <div class="slider">
           <ul class="items">

<?php if(!is_paged()) { ?>
<?php
$args = array( 'post_type' => 'slider', 'posts_per_page' => 5 );
$loop = new WP_Query( $args );
?>
<?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
                       <li>
<?php the_post_thumbnail('slider-image', array('class' => 'customimage')); ?>
                      </li>  

<?php endwhile; ?>
<?php wp_reset_query(); ?>
<?php } ?>
    </ul>  
</div>
<?php get_header();?>
<div class="maincontent">
<?php get_sidebar();?>
<div class="content">

<?php if(have_posts()) : ?><?php while(have_posts())  : the_post(); ?>
<h2><?php the_title(); ?></h2>
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('single-post-image', array('class' => 'single-post-thumb')); ?></a>
<?php the_content(); ?>
 <?php comments_template( '', true ); ?>
<?php endwhile; ?>
<?php else : ?>
<h3><?php _e('404 Error&#58; Not Found'); ?></h3>
<?php endif; ?>

</div>
</div>
<?php get_footer();?>
<?php get_header();?>
<div class="maincontent">
<?php get_sidebar();?>
<div class="content ">
<div class="breadcrumbs">
<?php if (function_exists('wordpress_breadcrumbs')) wordpress_breadcrumbs(); ?>
</div>
<h1 style="display:none;" class="archive_title">
<?php if (have_posts()) : ?>
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<?php _e('Archive for the'); ?> '<?php echo single_cat_title(); ?>' <?php _e('Category'); ?>                      
<?php /* If this is a tag archive */  } elseif( is_tag() ) { ?>
<?php _e('Archive for the'); ?> <?php single_tag_title(); ?>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<?php _e('Archive for'); ?> <?php the_time('F jS, Y'); ?>                                      
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<?php _e('Archive for'); ?> <?php the_time('F, Y'); ?>                                  
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<?php _e('Archive for'); ?> <?php the_time('Y'); ?>                                      
<?php /* If this is a search */ } elseif (is_search()) { ?>
<?php _e('Search Results'); ?>                          
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<?php _e('Author Archive'); ?>                                      
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<?php _e('Blog Archives'); ?>                                      
<?php } ?>
</h1>
<?php get_template_part('loop');?> /*loop.php call here*/
<?php else : ?>
<h3><?php _e('404 Error&#58; Not Found'); ?></h3>
<?php endif; ?>
</div>
</div>
<?php get_footer();?>

Note: keep option tree plugin code in your theme folder: Download
Usage: To Activate Option Tree

functions.php:
add_filter( 'ot_show_pages', '__return_false' );
add_filter( 'ot_show_new_layout', '__return_false' );
add_filter( 'ot_theme_mode', '__return_true' );
include_once( 'option-tree/ot-loader.php' );
include_once( 'includes/theme-options.php' );

Note: Create Option Tree In the theme (Make a folder ==>includes<== and  make a file ==>theme-options.php<== and paste the below code)

theme-options.php:
<?php
add_action( 'admin_init', 'custom_theme_options', 1 );
function custom_theme_options() {
  $saved_settings = get_option( 'option_tree_settings', array() );

  $custom_settings = array(
       'sections'        => array(
                       array(
                              'id'          => 'general',
                              'title'       => 'Site Settings'
                                   )
                             ),
/*
                        array(
                              'id'          => 'social',
                              'title'       => 'Social Settings'
                                   )
                             ),                           */

    'settings'        => array(
                        array(
                        'id'          => 'logo_uploader',
                        'label'       => 'Upload Your Logo',
                       'desc'        => 'Size of the logo should be 400px width and 200px height',
                       'type'        => 'upload',
                       'section'     => 'general'
                         ),
     /* array(
           'id'          => 'social_option',
          'label'       => 'Footer Text',
          'type'        => 'textarea',
         'section'     => 'social'
      )         */
    )
  );

  if ( $saved_settings !== $custom_settings ) {
    update_option( 'option_tree_settings', $custom_settings );
  }
}
 ?>

Note: Get Data From Option Tree
Conditional Data:
<?php if ( function_exists( 'get_option_tree') ) : if( get_option_tree( 'your_tree_id') ) : ?>    
    <?php get_option_tree( 'your_tree_id', '', 'true' ); ?>
<?php else : ?>
    Your Default Data Here
<?php endif; endif; ?>

Simple Data:
<?php get_option_tree( 'facebook', '', 'true' ); ?>
Note: Reload the dashboard of wordpress admin page. One can see a option in Appearance => Theme Options.
Example(header.php)
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><?php bloginfo('name');?></title>
<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri();?>/css/bar/bar.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri();?>/css/dark/dark.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri();?>/css/default/default.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri();?>/css/light/light.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri();?>/css/nivo-slider.css"/>
<link rel="stylesheet" type="text/css" href="<?php bloginfo(stylesheet_url);?>"/>
<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri();?>/fonts/stylesheet.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri();?>/comments.css"/>
<link href='http://fonts.googleapis.com/css?family=Port+Lligat+Slab' rel='stylesheet' type='text/css'>
<?php wp_head(); ?>
</head>
<body>
<div class="main">
<div class="header">
<?php if ( function_exists( 'get_option_tree') ) : if( get_option_tree( 'logo_Uploader') ) : ?>    
<a href="<?php bloginfo('home');?>"><img src="<?php get_option_tree( 'logo_Uploader', '', 'true' ); ?>" alt=""/></a>
<?php else : ?>
<a href="<?php bloginfo('home');?>"><img src="<?php echo get_template_directory_uri();?>/images/logo.jpg" alt=""/></a>
<?php endif; endif; ?>
</div>
<div class=" mainmenu">
<?php wp_nav_menu( array( 'theme_location' => 'header-menu') ); ?>
</div>
Back To Top