Last active
September 29, 2020 15:03
-
-
Save justiny/04c6df3dd681d1f9e169afbb457dafe3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Taxonomy Object | |
$gift_guide_products = get_field('gift_guide_collection'); | |
$args = array( | |
'post_type' => 'product', | |
'posts_per_page' => 12, | |
'tax_query' => array( | |
array( | |
// Custom Taxonomy | |
'taxonomy' => 'gift-guide-collection', | |
// Name of ACF Field | |
'terms' => $gift_guide_products, | |
), | |
), | |
); | |
$context['guide_filter'] = new Timber\PostQuery($args); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment