Using the Metro Wall and it displays the first 6 posts without issue. But, when scrolling down to the post area, the same 6 posts are displayed in order. Is there a simple way to change the code so that post number 7 is the first post to show outside the Metro Wall to avoid redundancy? Don’t need to have two home page jumps to the same post ideally. Thanks.
Hi J,
To resolve that issue, you can open the index.php file in themes/dw-argo folder, find this code below (around line 22):
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php endwhile; ?>
and change it into this:
<?php $post_number = 1;
while ( have_posts() ) : the_post(); ?>
<?php if($post_number++ < 7) continue; ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php endwhile; ?>
Hope that helps!
Hi, I get the same pbl and I tried this answer, but it’s still showing the same first articles in the Metro Wall and after it. Could you have a look please? >> http://letorrefacteur.fr/Thanks in advance.
Please login or Register to submit your answer