PHP code example of vtrotot / geko-post-type

1. Go to this page and download the library: Download vtrotot/geko-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 / geko-post-type example snippets


new VincentTrotot\Geko\GekoPostType();

$post = new VincentTrotot\Geko\Geko();

$args = [
    'post_type' => 'vt_geko',
    ...
];
$posts = new Timber\TimberRequest($args, VincentTrotot\Geko\Geko::class);