TCL Categories Image
v1.0.1shishir · 2017年12月12日 上架
TCL Categories Images Plugin allow users to add an image to category or custom taxonomies.You can easily assign an image to each category/taxonomy or …
- 正在使用
- 10+
- 评分
- 5.0 / 5
- 累计下载
- 1,760
- 最近更新
- 2018年1月20日
2 条评价需要 WordPress 4.4+已测试到 4.9.36PHP 5.2.4+
截图
TCL Categories Images Plugin allow users to add an image to category or custom taxonomies.You can easily assign an image to each category/taxonomy or tag and then display image for category/taxonomy/archive template via following functions.
Usage:
<?php if (function_exists('tclTaxonomyImage')) tclTaxonomyImage(); ?> to display image
<?php if (function_exists('tclTaxonomyThumbUrl')) echo tclTaxonomyThumbUrl(); ?> to get URL
Here, You can specify image size as a second parameter
<?php if (function_exists('tclTaxonomyImage')) tclTaxonomyImage(NULL,'thumbnail'); ?> to display image
<?php if (function_exists('tclTaxonomyThumbUrl')) echo tclTaxonomyThumbUrl(NULL,'thumbnail'); ?> to get URL



