I'm wondering why you don't set the postType like this when calling posts, the same way you do with query? did i miss something. It didn't seem to work properly for me without it.
public static function posts($args = null) {
// set the correct post type
$args = array_merge($args, ['post_type' => static::$postType]);
return Timber::get_posts($args, get_called_class());
}
thanks
J
Hi,
I'm wondering why you don't set the postType like this when calling posts, the same way you do with query? did i miss something. It didn't seem to work properly for me without it.