-2
Staff would like to know if anyone here can help me with a query post or loop in wordpress.
So... I insert with wp_insert and I don’t know why it doubles (maybe in the double mouse click) when sending via form.
My question and the next.... even with duplicate wordpress post I would like to not display have my template I will post below I wonder if anyone can help me modify and display without duplicating ?
Since now I thank my friends !
<?php
$args = array(
'post_type' => 'arquivos',
);
?>
<?php $the_query = new WP_Query( $args ); ?>
<?php if ($the_query->have_posts()): while ($the_query->have_posts()) : $the_query->the_post();?>
<?php the_title ();?>
<?php endwhile; else:?>
<?php endif;?>
There is no way you can dynamically avoid the appearance of duplicate posts. Ideal is that you deal with the problem of inserting twice in the database.
– Hegon Felipe
Thank you very much friend I’ll try !
– Geratec Telecom