wp

$page_id = 4;
$page_data = get_page( $page_id );
$content = $page_data->post_content;
$title = $page_data->post_title;
echo $page_data->post_content;

=======================

wp_nav_menu( array( 'theme_location' => 'header-menu' ) );

============================================

if ( dynamic_sidebar('Main Sidebar') ) : else : endif;

=======================================

$categ = get_query_var('portfolio');
    if($categ) { 
        if ( have_posts() ) : while ( have_posts() ) : the_post();
}

=======================================

$original_query = $query_string;
    query_posts( 'post_type=post&orderby=date&posts_per_page=5&exclude'.$post-
    >ID.'&author='.$post->post_author );

if (have_posts()) :
while (have_posts()) : the_post();

the_title();

endwhile;
endif;
wp_reset_query();       

=======================================

http://code.jquery.com/jquery-1.11.0.min.js

=======================================

do_shortcode('[]');

=======================================

$home = get_home_url().'/';
    $current = 'http://'.$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"];
    
    if($current == $home){
        echo do_shortcode('[metaslider id=421]');   
    }

=================================================

if( is_front_page() ) { 
}

=================================================

$inc = 0;
if($inc < 1 )
{
echo 'result-part0';
}
                            
else if((1 <= $inc ) && ($inc < 2 ))
{
echo 'result-part1';
}
$inc++; endwhile;

======================================================

if (is_blog()) 
  { 
  echo 'You are on a blog page'; 
  } 

=======================================================

$args = array(
            'type'                     => 'post',
            'child_of'                 => 0,
            'parent'                   => '',
            'orderby'                  => 'name',
            'order'                    => 'ASC',
            'hide_empty'               => 1,
            'hierarchical'             => 1,
            'exclude'                  => '',
            'include'                  => '',
            'number'                   => '',
            'taxonomy'                 => 'academy',
            'pad_counts'               => false 

            ); 
         $categories = get_categories( $args ); 
         foreach ( $categories as $siac ): 
         echo $siac->name; 
         endforeach;
    
            

========================================

simple fileds
text box value
    $value = simple_fields_value('text');
    echo $value;

image value get     
            
    $file_id = simple_fields_value('image1');
    $image_info = wp_get_attachment_image_src($file_id, "full");
    $image1 = $image_info[0];
src="echo $image1;"

Repeated image value
$field_group_values = simple_fields_fieldgroup("cs_slider");
        foreach ($field_group_values as $field_group_value) 
        {
            $theImageURL = wp_get_attachment_url($field_group_value);
            echo 'src="'.$theImageURL.'" '; 
            }

======================================

$temp = get_the_content();
echo substr($temp,0,200);

=========================================

http://angrycreative.se/wordpress-how-to-simple-image-slider-with-simple-fields/

=========================================

COMMENT PLEASE..!

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s