【问题标题】:TypeError $.urlGetVars is not a function in WordpressTypeError $.urlGetVars 不是 Wordpress 中的函数
【发布时间】:2013-08-13 09:45:10
【问题描述】:

我来了

TypeError: $.urlGetVars 不是我的 WordPress 站点中的函数。

返回 $.urlGetVars()[名称];

我从Dynamically filter WordPress posts by selectbox 得到脚本 用于通过在下拉框中选择作者来过滤帖子。

添加 jQuery 滑块后我收到此错误。 从enter link description here 获取 jQuery 滑块

【问题讨论】:

  • 控制台中的任何其他错误

标签: jquery wordpress typeerror drop-down-menu


【解决方案1】:

Wordpress 在 no conflict mode 中运行 jQuery,这意味着除非您将代码包装在 no conflict wrapper 中,否则您将需要使用 jQuery 而不是 $

【讨论】:

    猜你喜欢
    • 2012-08-28
    • 1970-01-01
    • 2018-01-02
    • 1970-01-01
    • 2020-06-29
    • 2020-06-17
    • 1970-01-01
    • 1970-01-01
    • 2020-03-03
    相关资源
    最近更新 更多