运维日志
-
WordPress自定义文章类型归档页标题函数:post_type_archive_title
WordPress函数post_type_archive_title用于在自定义文章类型归档页输出标题,通常在archive-{$post_type}.php模板中使用。 post…
-
WordPress自定义文章类型添加编辑区功能函数:add_post_type_support
WordPress函数add_post_type_support用于为自定义文章类型编辑区添加功能。 add_post_type_support( string $post_typ…
-
WordPress自定义文章类型删除编辑区功能函数:remove_post_type_support
WordPress函数remove_post_type_support用于删除自定义文章类型编辑区功能。 remove_post_type_support( string $pos…
-
CSS文本显示行数控制
对于单行的文字截断,可以使用text-overflow: ellipsis属性来实现: li { overflow: hidden; text-overflow: ellipsis…
-
WordPress注册分类法函数:register_taxonomy
WordPress函数register_taxonomy用于注册一个新的分类法或修改一个现有的分类法,如果修改现有分类法对象,$object_type的值将覆盖。 register…
-
WordPress获取分类法对象数据函数:get_term
WordPress函数get_term可以获取任何分类法对象数据,例如分类、标签和自定义分类法。 get_term( int|WP_Term|object $term, strin…
-
阿里云盘与Teambition网盘内测邀请码获取
阿里云盘与Teambition虽然都是阿里巴巴旗下的产品,但定位不同,阿里云盘可以看作是百度云盘之类的产品,而Teambition是办公套件,Teambition也提供了网盘功能,…
-
WordPress根据分类法字段获取分类法对象函数:get_term_by
WordPress函数get_term_by根据分类法的字段返回该分类法对象,包括分类、标签和自定义分类法。 get_term_by( string $field, string|…
-
精致漂亮的Linux系统:Zorin OS左邻安装教程
Zorin,中文名称左邻,是由爱尔兰的高新电子科技公司开发,基于Ubuntu。Zorin OS小巧漂亮,每一个细节都做得很精致,我使用过Linux Mint、Manjaro、Ele…
-
WordPress判断文章是否设置了特色图像函数:has_post_thumbnail
WordPress函数has_post_thumbnail用于判断当前文章是否设置了特色图像,即是否包含缩略图。 has_post_thumbnail( int|WP_Post $…