我构建了一个wordpress插件,但是有问题.
I build a wordpress plugin but I have a problem.
当我同时使用两个wordpress插件(Mine& Crayon)时,我的代码将覆盖crayon的代码并对其进行编码. 这是我关注的消息[crayon-546b7a833e38a220649795/]而不是主要帖子. 我期待着您的回音.
When I used both wordpress plugin (Mine & Crayon), my code override crayon´s code and encode it post. This is the message i watch [crayon-546b7a833e38a220649795/] instead of the main post. I´m looking forward to hearing from you.!
推荐答案在wordpress支持网站上有一个针对蜡笔插件的未报告问题: wordpress/support/topic/plugin-crayon-syntax-highlighter-not-working-in-类别视图
There is an unspecified reported issue on the wordpress support site for the crayon plugin: wordpress/support/topic/plugin-crayon-syntax-highlighter-not-working-in-category-view
基本上,尝试加载插件的最新版本,然后手动更改一些插件默认值:
Basically, try loading the newest version of the plugin, then manually change some plugin defaults:
取消选中仅在需要时尝试加载Crayon的CSS和JavaScript."
untick " Attempt to load Crayon's CSS and JavaScript only when needed."
勾选禁用可能包含The Loop的页面模板的入队".
tick "Disable enqueuing for page templates that may contain The Loop."
取消选中仅从主要WordPress查询中加载蜡笔"
untick "Load Crayons only from the main WordPress query"
这可能不是您的问题,但至少它会为您提供进一步解决问题的更好位置.
This may not be your issue, but at the very least it will provide a better place for you to troubleshoot further.
完成此操作后,如果仍然遇到问题,可以尝试本文,本文概述了在创建自己的自定义简码时避免插件冲突的步骤. www.wpexplorer/avoid-theme-plugin-conflicts/
Once that's done, if you're still encountering issues, you can try this article, which outlines the steps to avoid plugin conflicts when creating your own custom shortcodes. www.wpexplorer/avoid-theme-plugin-conflicts/
更多推荐
当我在网页上找到帖子时出现蜡笔荧光笔错误(Wordpress)
发布评论