PHP Classes

File: parts/reviews.php

Recommend this page to a friend!
  Classes of Victor Andeloci   One WordPress Game Theme   parts/reviews.php   Download  
File: parts/reviews.php
Role: Example script
Content type: text/plain
Description: Example script
Class: One WordPress Game Theme
WordPress theme for a gaming blog and podcast
Author: By
Last change:
Date: 9 months ago
Size: 728 bytes
 

Contents

Class file image Download
<section id="reviews">
    <div class="container">
        <h2 class="subtitle">Textos</h2>
        <div class="post-list-container">
            <?php
                wp_reset_query
();

               
$args = [
                   
'post_type' => 'post',
                   
'posts_per_page' => 3,
                   
'category_name' => 'textos'
               
];

               
$query = new WP_Query( $args );

                if (
$query->have_posts()) :
                    while (
$query->have_posts()) :

                       
$query->the_post();
                       
get_template_part( 'elements/post_card' );

                    endwhile;
                endif;
           
?>
</div>
    </div>
</section>