/wp-admin/plugins.php'; return; } if (!class_exists('acf') ) { echo 'ACF not activated. Make sure you activate the plugin in /wp-admin/plugins.php'; return; } $context = Timber::get_context(); if (is_page()) { $context['post'] = new TimberPost(); if ($parent = $context['post']->parent()) { $context['children'] = $parent->children('page'); $context['parent'] = $parent; } else { $context['children'] = $context['post']->children('page'); $context['parent'] = $context['post']; } $template = ['page.twig']; } else if (is_404()) { $template = ['errors/404.twig']; } Timber::render($template, $context); ?>