PHP code example of arcath / post-formats
1. Go to this page and download the library: Download arcath/post-formats 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/ */
arcath / post-formats example snippets
$formats = array('gallery', 'video');
asort($formats);
$post_formats = new PostFormats($formats, array('post', 'page'));