PHP code example of vtrotot / annuaire-post-type
1. Go to this page and download the library: Download vtrotot/annuaire-post-type 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/ */
vtrotot / annuaire-post-type example snippets
new VincentTrotot\Annuaire\AnnuairePostType();
$post = new VincentTrotot\Annuaire\Annuaire();
$args = [
'post_type' => 'vt_annuaire',
...
];
$posts = new Timber\TimberRequest($args, VincentTrotot\Annuaire\Annuaire::class);