PHP code example of starise / post-thumbnails

1. Go to this page and download the library: Download starise/post-thumbnails 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/ */

    

starise / post-thumbnails example snippets


use starise\PostThumbnails as PostThumbnails;

new PostThumbnails(
    [
        'label' => 'Secondary Image',
        'id' => 'secondary-image',
        'post_type' => ['post']
    ]
);

<?= PostThumbnails::the_post_thumbnail('secondary-image');