星期三 , 28 5 月 2025

WordPress教程

5 月, 2025

  • 25 5 月

    @wordpress/create-block 创建多个block框架教程

    如果只转移的话带有package.json的话就 使用 npm install 进行安装 只需要安装一次npm的module模块: npx @wordpress/create-block@latest my-custom-block --variant dynamic --namespace wptutorblocks my-custom-block 是block的名字 --variant: 设置输出为render.php 设置dynamic : 不输出静态内容 ...

  • 14 5 月

    HTML unicode 符号清单

    SymbolDescriptionUnicode©Copyright©®Registered®™Trademark™€Euro€£Pound£¥Yen¥ SymbolDescriptionUnicode±Plus-minus±×Multiplication×÷Division÷∞Infinity∞≠Not equal≠≤Less or equ...

  • 10 5 月

    语义推荐AI-Powered Search & Recommendation文章和实时搜索插件讲解

    在这个插件中,“语义(semantic)”指的是超越关键词字面匹配的意义理解。它主要用于“语义搜索”和“语义推荐”,也就是插件在搜索和推荐功能中会使用“内容的含义”来进行更智能的匹配,而不仅仅是对关键词的简单比对。 具体理解方式如下: ✅ 传统搜索(非语义) WordPress 默认搜索是基于关键词的。例如: 用...

  • 9 5 月

    WP主题开发的安全性加固

    Below is a checklist of hardening, cleanup, and performance-tweaks you can apply in your theme’s functions.php (or better yet, a small “theme-utilities” plugin). Feel free to cherry-pick what fits your project. 1. Secure the Theme 1.1 Hide WordPress Version Expose as little as possi...

4 月, 2025

2 月, 2025

  • 28 2 月

    SQL替换

    I understand - you want to go the opposite direction and replace relative URLs with absolute ones. Here's the SQL command to do that: sqlCopyUPDATE wp_posts SET post_content = REPLACE( post_content, 'wp-content/uploads/', 'http://mydomain.com/wp-content/uploads/' ) WHERE post_c...

  • 3 2 月

    VSCODE 扩展

    Here are some of the most useful extensions for VS Code for web development, categorized based on your needs: PHP Extensions: PHP Intelephense Provides powerful auto-completion, IntelliSense, and code navigation for PHP. PHP Debug Debugging PHP code with Xdebug directly in VS Code....

1 月, 2025

  • 21 1 月

    Canva slider

    https://www.canva.com/design/DAGc1iNJKzk/KSvQWmQYoibx6IWoxDInEg/view?utm_content=DAGc1iNJKzk&utm_campaign=designshare&utm_medium=link2&utm_source=uniquelinks&utlId=haa3e9ef37f

11 月, 2024

9 月, 2024

  • 29 9 月

    WP如何添加自媒体链接

    首先我们要在后台用户面板添加自媒体链接的字段输入框,要用到的是 show_user_profile的钩子和edit_user_profile的钩子, <?php /*-----------------------------------------------------------------------------------*/ # Add user's social accounts /*--------------------------------------------------...