首页
统计
分类
tags
推荐
WordPress
Linux
Search
1
快速部署Xray V2ray SS Trojan Trojan-go七合一共存一键脚本+伪装博客
189 阅读
2
国外12个免费的DNS
138 阅读
3
让你的WP跑得更快 - WordPress优化指南
82 阅读
4
github 网页的新字体 -apple-system BlinkMacSystemFont 是什么
80 阅读
5
BBR Plus一键安装脚本 BBR/BBR Plus/魔改BBR/锐速(LotServer)四合一
77 阅读
Wordpress
Linux
Other
登录
Search
标签搜索
wordpress
SSR
LNMP
bbr
SSR - Bash
flashfxp
Facebook messenger
brotli
WooCommerce
Deepin
V2Ray
BBR Plus
yum
宝塔
SQLite
谷歌云
debian
Contact Form 7
reCAPTCHA
Ruinous
累计撰写
79
篇文章
累计收到
0
条评论
首页
栏目
Wordpress
Linux
Other
页面
统计
分类
tags
推荐
WordPress
Linux
搜索到
79
篇与
的结果
2025-03-20
WordPress后台菜单怎么创建产品文章类型
只需要将以下的函数代码粘贴到你的模板函数文件functions.php即可实现。`// Register Custom Post Typefunction products_post_type() {$labels = array('name' => _x( '产品', 'Post Type General Name', 'text_domain' ),'singular_name' => _x( '产品', 'Post Type Singular Name', 'text_domain' ),'menu_name' => __( '产品', 'text_domain' ),'name_admin_bar' => __( '产品', 'text_domain' ),'archives' => __( 'Item Archives', 'text_domain' ),'attributes' => __( 'Item Attributes', 'text_domain' ),'parent_item_colon' => __( 'Parent Product:', 'text_domain' ),'all_items' => __( '所有产品', 'text_domain' ),'add_new_item' => __( '发布新产品', 'text_domain' ),'add_new' => __( '发布新产品', 'text_domain' ),'new_item' => __( '创建分类', 'text_domain' ),'edit_item' => __( '编辑产品', 'text_domain' ),'update_item' => __( '更新产品', 'text_domain' ),'view_item' => __( '查看产品', 'text_domain' ),'view_items' => __( '查看分类', 'text_domain' ),'search_items' => __( '搜索产品', 'text_domain' ),'not_found' => __( '暂无产品', 'text_domain' ),'not_found_in_trash' => __( '暂无产品', 'text_domain' ),'featured_image' => __( '产品封面图', 'text_domain' ),'set_featured_image' => __( '设置封面图', 'text_domain' ),'remove_featured_image' => __( '删除封面图', 'text_domain' ),'use_featured_image' => __( '设置为封面图', 'text_domain' ),'insert_into_item' => __( 'Insert into item', 'text_domain' ),'uploaded_to_this_item' => __( 'Uploaded to this item', 'text_domain' ),'items_list' => __( 'Items list', 'text_domain' ),'items_list_navigation' => __( 'Items list navigation', 'text_domain' ),'filter_items_list' => __( 'Filter items list', 'text_domain' ),);$args = array('label' => __( 'Product', 'text_domain' ),'description' => __( 'Product information pages.', 'text_domain' ),'labels' => $labels,'supports' => array( 'title', 'editor', 'thumbnail', 'comments', 'custom-fields' ),'taxonomies' => array( 'category', 'post_tag' ),'hierarchical' => false,'public' => true,'show_ui' => true,'show_in_menu' => true,'menu_position' => 5,'show_in_admin_bar' => true,'show_in_nav_menus' => true,'can_export' => true,'has_archive' => true,'exclude_from_search' => false,'publicly_queryable' => true,'capability_type' => 'page',);register_post_type( 'product', $args );}add_action( 'init', 'products_post_type', 0 );` 以上就是WordPress后台菜单创建产品文章类型的方法,需要的小伙伴快去试下吧。
2025年03月20日
3 阅读
0 评论
0 点赞
2025-03-11
如何查看Facebook广告的受众群体
今天教大家如何查看Facebook和Instagram广告的受众群体当你在浏览Facebook或Instagram时,点击广告右上角的三个小点。在弹出的窗口中选择“Why am I seeing this ad?”点击“Advertiser choices”这样你就可以看到广告商投放的广告人群和兴趣啦另外,如果你想看到更多竞争对手的广告,可以尝试以下方法:多点赞和收藏对方的帖子、广告或页面。多点击对方的广告。这样,Facebook和Instagram就会知道你喜欢这类内容,并推送更多相关的广告给你。
2025年03月11日
9 阅读
0 评论
0 点赞
2024-07-16
Elementor 添加谷歌代码
1.选择Elementor,点击custom code选项,Add new;2.输入HeadCustomCode标记为头部自定义代码,选择Location为head,复制并粘贴代码至代码区,Publish即可;3.选择 include >>> Entire Site;4.同理,noscript也这样安装,新建BodyCustomCode,按照上述填入noscript代码,Publish,并选择全站即可。
2024年07月16日
17 阅读
0 评论
0 点赞
2024-03-04
wordpress 禁止 wp-json
直接将代码放置到当前主题 functions.php 文件中添加以下代码`//禁用 REST API、移除 wp-jsonadd_filter('rest_enabled', '_return_false');add_filter('rest_jsonp_enabled', '_return_false');remove_action( 'wp_head', 'rest_output_link_wp_head', 10 );remove_action( 'wp_head', 'wp_oembed_add_discovery_links', 10 );` 最好在robots.txt里面禁止wp-json抓取;`User-agent: *Disallow: /wp-admin/Disallow: /wp-content/Disallow: /wp-includes/Disallow: //comment-page-Disallow: /?replytocom=Disallow: /category/*/page/Disallow: /tag/*/page/Disallow: /*/trackbackDisallow: /feedDisallow: /*/feedDisallow: /comments/feedDisallow: /?s=*Disallow: //?s=\Disallow: /?Disallow: /?pDisallow: /attachment/Disallow: /wp-json/Sitemap: http://www.*.com/sitemap_1.xml`
2024年03月04日
26 阅读
0 评论
0 点赞
2024-02-28
静态资源免费cdn加速 前端JS/CSS公共库
1.JSHUBJSHub 开源项目免费 CDN 加速服务,致力于为 Bootstrap、jQuery、Angular、Vuejs 一样优秀的前端开源项目提供稳定、快速的免费 CDN 加速服务。JSHub 所收录的开源项目主要同步于 cdnjs 仓库。https://jshub.com/2.unpkgunpkg CDN 由Cloudflare提供支持,Cloudflare是世界上最大、最快的云网络平台之一。https://unpkg.com/3.cdnjscdnjs 是一项免费的开源 CDN 服务,受超过12.5% 的网站信任,每月服务超过2000 亿次请求,由 Cloudflare 提供支持。https://cdnjs.com/4.StaticfileCDN 加速由七牛云提供,技术社区掘金支持https://staticfile.org/5.75cdn360前端静态资源库是由奇舞团支持并维护的开源项目免费 CDN 服务https://cdn.baomitu.com/6.jsDelivrjsDelivr 是一个免费开源的 CDN 解决方案,用于帮助开发者和站长,支持所有GitHub仓库加速https://www.jsdelivr.com/7.字节跳动字节跳动静态资源公共库同步cdnjs.com支持自定义缓存时长https://cdn.bytedance.com/8.微软支持jQuery相关几个库的加速!https://docs.microsoft.com/zh-cn/aspnet/ajax/cdn/overview
2024年02月28日
38 阅读
0 评论
0 点赞
1
2
...
16