标签: wordpress categories
我试图按照帖子计数的顺序从Wordpress获得前五个类别,它们使用下面的代码使用给定标签id的标签。但是它总是返回空数组。但是有数据存在,什么是错了吗?
var customAttribute = GetAttributeCustom<MyClass>("MyMethod"); if (customAttribute != null) { Console.WriteLine(customAttribute.MyPropertyAttribute); }