PHP code example of amphibee / wpgb-extended
1. Go to this page and download the library: Download amphibee/wpgb-extended 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/ */
amphibee / wpgb-extended example snippets
use WpgbExtended\Facades\Template;
Template::make('post-list')
->setSourceType('post')
->setClasses(['list', 'is-full-width'])
->setWrapperTag('ul')
->setQueryArgs([
'post_type' => 'post',
'posts_per_page' => 10,
])
->setRenderCallback('prefix_render_callback')
->setNoResultsCallback('prefix_noresults_callback');