%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/knwn/wp-content/themes/kn-wn/
Upload File :
Create Path :
Current File : //var/www/knwn/wp-content/themes/kn-wn/page-solutions.php

<?php
/* Template Name: Solutions */

$context = Timber::get_context();
$post = new TimberPost();
$context['post'] = $post;
$context['acf'] = get_fields($post->ID);

$context['solutions'] = Timber::get_posts(array(
    'numberposts' => -1,
    'post_type'   => 'solutions',
    'orderby'     => 'menu_order',
    'order'       => 'ASC'
));

$context['cases'] = Timber::get_posts(array(
    'numberposts' => 4,
    'post_type'   => 'post',
	'orderby'     => 'date',
	'order'       => 'DESC',
    'category'    => get_field('cases', $post->ID)['category']
));


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

Zerion Mini Shell 1.0