For 30 years, New York-based publishing house Assouline has stood as a glossy bedrock of worldly good taste. Here the family behind the brand discuss...
28 November, 2024
aaa
use Agentpoint\Core\Configuration; use APC\Kay\TemplateFunctions; $header_posts = []; $header_sort = Configuration::get(TemplateFunctions::getInstance()->optionName() . '.blog_header_sort', 'date'); if (($header_sort ?? 'date') == 'defined_id') { $post_ids = Configuration::get(TemplateFunctions::getInstance()->optionName() . '.case_study_header_posts', []); $header_posts = get_posts([ 'include' => implode(',', ($post_ids ?? [])), 'post_type' => 'aptcasestudy' ]); } elseif (($header_sort ?? 'date') == 'date') { $header_posts = get_posts([ 'numberposts' => 3, 'post_type' => 'aptcasestudy' ]); } ?>