如何在设置为显示类别的主题所在的位置显示自定义分类法。
我对自定义帖子也有同样的问题,并使用“pre\\u get\\u posts”和$query->set(\'post\\u type\',array(\'post\',\'custom post\')解决了这个问题
自定义分类法也有相同的东西吗?
在类别中,它列出了使用类别创建的类别。我还想列出我的custom\\u taxonomy\\u category类别
如何在设置为显示类别的主题所在的位置显示自定义分类法。
我对自定义帖子也有同样的问题,并使用“pre\\u get\\u posts”和$query->set(\'post\\u type\',array(\'post\',\'custom post\')解决了这个问题
自定义分类法也有相同的东西吗?
在类别中,它列出了使用类别创建的类别。我还想列出我的custom\\u taxonomy\\u category类别
如果要列出必须使用的自定义分类法get_terms 作用
根据您的需求,您可以自行修改默认类别,而不是创建新的分类法
function custom_change_cat_object() {
global $wp_taxonomies;
$labels = &$wp_taxonomies[\'category\']->labels;
$labels->name = \'Author\';
$labels->singular_name = \'Author\';
$labels->add_new = \'Add Author\';
$labels->add_new_item = \'Add Author\';
$labels->edit_item = \'Edit Author\';
$labels->new_item = \'Author\';
$labels->view_item = \'View Author\';
$labels->search_items = \'Search Authors\';
$labels->not_found = \'No Authors found\';
$labels->not_found_in_trash = \'No Authors found in Trash\';
$labels->all_items = \'All Authors\';
$labels->menu_name = \'Author\';
$labels->name_admin_bar = \'Author\';
}
add_action( \'init\', \'custom_change_cat_object\' );
我的一个朋友让我对他的网站做一些小的修改(更改每页的标题,为电话号码添加一个可点击的移动链接,在页脚中添加营业时间,在导航栏中添加滚动菜单…)我对HTML和CSS很熟悉,但对Php不太熟悉。我似乎找不到每个页面的HTML文件。我读到应该是像index这样的php文件。但是,如何对这些内容进行html更正?我可以通过Bitbucket访问主题和文件,但我有点被困在这里了。谁能帮帮我吗?谢天谢地