Carrega 3 posts ao aperta o botão
-
Olá.
Gostaria que no meu index, ao eu aperta no botão" <div id="bott"><a href="eventos.php"><p>+DEPOIMENTOS</p></a></div>"
Quero que carregue em baixo +3 posts da categoria DEPO e assim sucessivamente até acabar o numero de posts.Ja tentei fazer alguns por ajax, não sei quase nada de ajax e não consegui, poderiam me ajudar 🙁
<?php query_posts( array ( "category_name" => "depo" )); if (have_posts()) : while (have_posts()) : the_post(); ?> <article id="post-28" role="article" style="margin-left:20px;"> <?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?> <h1 class="titulo-depo" ><b><a class="index-tro"href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></b></h1> <h2 class="depo-p"><?=the_content();?></h2> </article> <?php $cont_banner++; endwhile; ?> <?php else : ?> <?php endif; ?> <div id="bott"><a href="eventos.php"><p>+DEPOIMENTOS</p></a></div><br /><br /><br /><br /> </main> <?php get_sidebar(); ?> </div> </div> <?php get_footer(); ?>
Visualizando 1 resposta (de um total de 1)
Visualizando 1 resposta (de um total de 1)
- O tópico ‘Carrega 3 posts ao aperta o botão’ está fechado para novas respostas.