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

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

    </div>
			</div>
			</div>
            </div>