当我进入搜索页面时,链接是
https://www.travelairy.com/?s=test&post_type=product
但在此页面上,功能:
$product_taxonomies = get_the_terms($post->ID, $queried_object->taxonomy)
返回null,我怀疑这就是导致以下问题的原因:
问题是:
1) 获取logo的函数返回“67”,the_field(\'default_logo\', \'option\')
, 而不是徽标图像url
2) 未设置横幅,并且在仪表板上似乎没有相关设置

如何解决这个问题?非常感谢你的帮助。