I'm trying to get pagination for a custom post type. I don't know what's wrong with the code but it doesn't work. This is what I have done so far:
<?php $query = new WP_Query( 'post_type=medios-link&order=DESC&posts_per_page=4' ); ?>
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
<div><?php the_field('texto_adicional') ?></div>
<?php endwhile; ?>
<div class="nav-posts">
<div class="prev-post">
<?php next_posts_link( '< <br/>Previous posts',$query) ?>
</div>
<div class="next-post">
<?php previous_posts_link( '> <br/>Next posts' ) ?>
</div>
</div>
Any idea what i'm doing wrong?