Hi,
I want to display in the archive and custom post type, some different number of post.
For the custom post type, in my file archives-cpt.php, I did that and works, but for the post my loop doesnt work ?
Can I created a filter for display a number of archives ?
<?php
$loop = new WP_Query( array( 'post_type' => 'recipes', 'posts_per_archive_page' => $redux['recipes_per_page'] )
while ( $loop->have_posts() ) : $loop->the_post();?>
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<?php the_excerpt(); ?>
<?php wp_link_pages(array('before' => '<nav class="pagination">', 'after' => '</nav>'));
endwhile;
?>
Thanks