Forums

Display number of query results (1 post)

  1. baalstorm
    Member
    Posted 7 months ago #

    Hello, i have this query here:

    <?php
    $dataQuery = new ACF_WP_Query( array(
    'post_type' => 'post',
    'posts_per_page' => -1, // get all posts
    'orderby_field' => 'indice', // name of field
    'orderby_type' => 'string', // 'int' or 'string' (defaults to 'string')
    'order' =>  'ASC',
    'cat' => '14',
    ));
    ?>

    i want to display the number of query results in my page.
    thank you

Reply

You must log in to post.

About this Topic

Tags