My posts where showing for a while but now they are gone from my page. I see no mistakes and there's no error messages in debug mode, I really don't know why wouldn't my posts show with this code, specially when it was working before. All I did was add the Advanced Custom Fields plugin, add a few fields, link them to my posts and save. Then my posts were gone. I have disabled and deleted the plugin, remade all my posts but nothing works.
<div class="artiq-slidder"> <ul class="artiq-slidder-ul"> <?php $args = array( "post_type" => "piso" ); $the_query = new WP_Query( $args ); ?> <?php if( have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post(); ?> <li class="artiq-slidder-item"> <img src="<?php the_post_thumbnail(); ?>"> <a href="<?php the_permalink(); ?>"> <p> <?php the_title(); ?> </p> </a> </li> <?php endwhile; endif; ?> </ul> </div>