%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/businessmultisite/wp-content/themes/stripes_weekly/
Upload File :
Create Path :
Current File : /var/www/businessmultisite/wp-content/themes/stripes_weekly/page-authors.php

<?php
/* Template Name: Authors */

$context = Timber::get_context();
$post = new TimberPost();
$context['post'] = $post;

$context['puffs'] = get_field('puffs', $context['post']->ID);


$args = array(
    'role__in'     => array('author', 'editor'),
    'orderby'      => 'display_name',
    'order'        => 'ASC',
);
$users = get_users($args);

foreach ($users as $user) {
    $context['authors'][] = new Timber\User($user->ID);
}

Timber::render("page-authors.twig", $context);

Zerion Mini Shell 1.0