admin管理员组文章数量:1421256
Wordpress version 5.2.2
Local development - WAMP
PHP version 7.0.1
I am building car dealership website.
Goal:
Set featured image for custom taxonomy - Body Types
Set featured image for custom taxonomy - Makes
Problem / Issue: The Body Types image is working as expected, but the Makes image will NOT add or "set". I tried copying / duplicating the code for Body Types and replacing variables where needed to get the same functionality for Makes, but something must be duplicated incorrectly. I say this because when I remove the Body Types code, the Makes code works and I can add an image. But of course I need both taxonomies to function correctly. I was wondering if anyone can spot the problem so that both work correctly.
I will post screenshots below to describe what I am trying to do.
My code can be seen here in the file custom-taxonomies.php on my Github account: .php
本文标签: Trouble adding custom featured image for custom taxonomy TERMS
版权声明:本文标题:Trouble adding custom featured image for custom taxonomy TERMS 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745347468a2654559.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论