PHP code example of barnythorpe / wp-fluent-queries
1. Go to this page and download the library: Download barnythorpe/wp-fluent-queries library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
barnythorpe / wp-fluent-queries example snippets
$builder = new PostQueryBuilder();
$builder
->postType('custom_post_type')
->postsPerPage(12)
->fields('ids');