I have Genesis framework, And i have problem when set custom page as front page,
when set as home page, All post not show.
But when visit it as page i see all post.
where is problem ??
<div class="content-sidebar-wrap">
<main class="content" role="main" itemprop="mainContentOfPage" itemscope="itemscope" itemtype="http://schema.org/Blog">
<div id="content_box">
<?php
$i=0;
wp_reset_query();
query_posts('posts_per_page=10&post_type=post');
if(have_posts() ) :
while(have_posts()) : the_post();
?>
<article class="latestPost excerpt <? if($i%2==0){?> first <? } ?>" itemscope="" itemtype="http://schema.org/BlogPosting">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" id="featured-thumbnail">
<div class="featured-thumbnail">
<?php
if ( has_post_thumbnail() ) {
the_post_thumbnail(array('370','297'));
}
?>
</div>
</a>
<header>
<h2 class="title front-view-title" itemprop="headline">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php the_title(); ?>
</a>
</h2>
</header>
</article>
<?php
$i++;
endwhile;endif;
wp_reset_query();
?>
</div>
<?php add_action( 'genesis_after_content', 'genesis_get_sidebar' ); ?>
</main>
</div>
If your using a custom page, on edit page admin, there's a template selection and select for blog template, or you may use the custom template for custom blog content.
I think there is a if statement before the looping like is_front_page() or is_home(). If not, try the below code.
Example of custom page template is
/* Template Name: Custom page template */
add_action( 'genesis_meta', 'custom_page_template_function' );
function custom_page_template_function(){
remove_action( 'genesis_loop', 'genesis_do_loop' );
add_action( 'genesis_loop', 'custom_do_loop' );
}
function custom_do_loop(){
// content or custom query post
}
genesis();