Beispiel #1
0
function PricerrTheme_blog_posts_area_function()
{
    global $current_user;
    get_currentuserinfo();
    $uid = $current_user->ID;
    ?>
    
        
   <div id="content">
			      <div class="my_box3">
            	<div class="padd10">
                    
            
            		<div class="box_title"><?php 
    echo __("All Blog Posts", 'PricerrTheme');
    ?>
</div>
                    
              
            		<div class="box_content">
                    
                    <?php 
    $args = array('post_type' => 'post', 'paged' => get_query_var('paged'));
    $my_query = new WP_Query($args);
    if ($my_query->have_posts()) {
        while ($my_query->have_posts()) {
            $my_query->the_post();
            PricerrTheme_get_post_blog();
        }
        if (function_exists('wp_pagenavi')) {
            wp_pagenavi(array('query' => $my_query));
        }
    } else {
        _e('There are no posts.', 'PricerrTheme');
    }
    ?>
                    
                    </div></div>
  </div></div>
    
    
      <!-- ################### -->
    
    <div id="right-sidebar">    
    	<ul class="xoxo">
        	 <?php 
    dynamic_sidebar('other-page-area');
    ?>
        </ul>    
    </div>
    
    
      
    
    <?php 
}
Beispiel #2
0
    _e('Blog Archives', 'PricerrTheme');
    ?>
						<?php 
}
?>
                
                </div>
                <div class="box_content post-content"> 
<?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>

<?php 
        PricerrTheme_get_post_blog();
        ?>
	
		
<?php 
    }
}
// end of the loop.
?>

    </div>
			</div>