腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(2774)
视频
沙龙
1
回答
get_terms
(
get_the_ID
)
显示
WP_Error
wordpress
、
tags
、
taxonomy
我尝试从post内部
显示
我的自定义分类标记,但它返回NULL或
WP_Error
var_dump(
get_terms
(
get_the_ID
())); object(
WP_Error
浏览 12
提问于2019-03-29
得票数 0
回答已采纳
1
回答
分类法模板中的
get_terms
custom-taxonomy
、
terms
、
archive-template
如果我在分类法-Producer.php中插入$terms =
get_terms
('brand');,就无法获得分类法brand的条件。如果我写一些类似echo $terms->slug;的东西,它不会
显示
任何东西。
浏览 0
提问于2018-06-04
得票数 1
回答已采纳
1
回答
Wordpress -无法使用WC_Widget使用构造函数获取产品类别的术语
wordpress
但是当我在__construct()中使用函数
get_terms
('product_cat')时,出现了一个错误: object(
WP_Error
)#1330 (2) { ["errors":"
WP_Error
array(1) { ["invalid_taxonomy"]=> array(1) { [0]=> string(16) "Invalid taxonomy" } } ["error_data":"<e
浏览 1
提问于2015-01-28
得票数 0
1
回答
如何在Twig/Timber Wordpress中
显示
与类别相关的帖子数量?
categories
、
templates
=> $order, 'exclude' => 18,$context['categories'] =
get_terms
total_in_term = $context['categories']->count;并试图按照每个术语后面括号中的帖子数
显示
类别名称
浏览 0
提问于2022-01-26
得票数 0
回答已采纳
2
回答
如何
显示
自定义邮寄类型的分类?
wordpress
、
taxonomy-terms
) register_post_type( 'spotlight', $spotlight_args);这是我们添加CPT的循环,我们如何在这里
显示
分类类别2 $taxonomy = 'category-spotlight';我想要
显示
如下内容: Title1 Category1 Title2
浏览 2
提问于2021-03-09
得票数 0
2
回答
为某些定义的用户角色创建WordPress用户登录系统的程序
wordpress
、
authentication
我已经更新了我的代码,但问题是
get_the_ID
没有得到任何值。你能帮帮我吗。此代码在子主题中添加function.php。get_user_by( 'login', $username ); {
浏览 0
提问于2018-09-24
得票数 1
回答已采纳
2
回答
get_terms
从插件中给出了“无效的分类”
php
、
wordpress
、
woocommerce
代码看起来就像这样:print_r($cats);
WP_Error
Object [errors:
WP_Error
:private] => Array
浏览 0
提问于2014-10-25
得票数 15
3
回答
我怎么能列出所有的鼻涕虫类?
categories
如下所示:这将从单个投资组合返回类别。我只想把这个还给你。
浏览 0
提问于2018-08-16
得票数 0
1
回答
Wordpress获取woocommerce类别作为数组
wordpress
$matches[0] : []; 在其他职能方面: 'taxonomy' => 'product_cat
浏览 0
提问于2018-11-15
得票数 0
回答已采纳
2
回答
试图获取非对象WordPress属性的相同位置上的错误
php
、
wordpress
我创建了一个函数,该函数返回自定义Post类型分类法的数组: $categories =
get_terms
( 'service_categories
浏览 6
提问于2014-02-25
得票数 1
回答已采纳
1
回答
得到所有博客的类别和相关的网址?
categories
我是用
get_terms
(),get_categories(),wp_list_categories(),wp_query()还是别的什么?
浏览 0
提问于2019-06-11
得票数 0
回答已采纳
1
回答
如何输出用于WP post的分类学术语?
php
、
html
、
wordpress
、
taxonomy
、
custom-taxonomy
services_query = new WP_Query( $services_args ); $terms =
get_terms
浏览 1
提问于2016-10-28
得票数 2
回答已采纳
1
回答
在
WP_Error
处理程序之前触发致命错误
plugin-development
、
fatal-error
because "Grap" without last "h"if ( is_wp_error($graph) ){ echo "is
wp_error
"; }回声从来没有
显示
过。为什么它没有
显示
出来? 如何对此特定情况进行编码才能看到自定义错误消息?
浏览 0
提问于2020-02-12
得票数 -2
1
回答
Wordpress + WooCommerce获取产品标签
php
、
wordpress
我正试着在结账页面上
显示
这个标签。我写了一段代码,但它
显示
了我所有产品的所有标签,而不仅仅是购物车里的东西。<br>"; $term_array = array(); echo 'hello exists'; echo 'not exists&
浏览 0
提问于2017-09-06
得票数 3
回答已采纳
2
回答
为foreach()提供的无效参数。Wordpress
php
、
wordpress
php foreach (get_the_terms(
get_the_ID
(), 'loan-club') as $cat) : ?> <img src="<?
浏览 1
提问于2016-11-04
得票数 2
回答已采纳
1
回答
Wordpress自定义邮政类型-类别
显示
php
、
wordpress
我为一个站点创建了一个自定义的post类型,并且我在管理员的帖子上
显示
了类别,但是当我在公共站点上调用它们时,列表总是空白的。我不知道我错过了什么。
浏览 1
提问于2015-11-13
得票数 1
回答已采纳
1
回答
将自定义分类法分配给自定义post类型的输出
custom-post-types
、
custom-taxonomy
ID, 'serie', array("fields" => "all")); $terms =
get_terms
浏览 0
提问于2019-05-15
得票数 -1
回答已采纳
1
回答
如何
显示
分级和非分级分类法?
custom-post-types
是否有可能在不使用名称的情况下
显示
分层次和非分级分类法?我怎么能这么做?
浏览 0
提问于2019-05-15
得票数 0
1
回答
合并wp_get_post_terms
php
我有这个密码 $animes->the_post(); $animeID[$i] = $post->ID; 'orderby' => 'meta_value_num', 'fields' =
浏览 0
提问于2019-07-11
得票数 0
1
回答
获取当前帖子的分类名称
custom-taxonomy
、
taxonomy
我正在尝试获取分配给当前帖子的自定义分类法的名称,在我的模板中我有: $countries =
get_terms
( 'country', array('hide_empty' => false,
浏览 0
提问于2020-11-23
得票数 0
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
WordPress 分类归档页面显示该分类的子分类结构
热门
标签
更多标签
云服务器
ICP备案
实时音视频
即时通信 IM
对象存储
活动推荐
运营活动
广告
关闭
领券