PHP code example of vtrotot / event-post-type

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


new VincentTrotot\Event\EventPostType();

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

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