【问题标题】:Wordpress simple shortcode content lengthWordpress 简单短代码内容长度
【发布时间】:2014-09-28 04:24:45
【问题描述】:

我对简单的简码有疑问。它工作正常。当有 80 到 90 个字时。但如果有超过 90 个字,那么它会向我显示类似 "connection lost" 的消息。我在本地主机工作。 相同的代码适用于 wp 3.9 版本。我在 22 个主题 4.0 版中测试了这段代码。但在这里也没有奏效。 * 我没有安装任何插件。

function extre_shortcode( $atts, $content = nulls) {

    extract( shortcode_atts( array(
    'hola' => '',

), $atts ) );
return '<div class="formacion"><h2>'.$hola.'</h2></div>';

[extra hola="big content"]

请,任何帮助。是wp最新版本吗..

谢谢

}

【问题讨论】:

    标签: wordpress shortcode


    【解决方案1】:

    经过大量挖掘,我找到了这个解决方案。我在这里发帖,希望这对其他人有帮助。

    只需在你的functions.php中添加这个过滤器

    remove_filter('the_content', 'wptexturize');

    更多信息,请关注thread

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-03-23
      • 2019-10-29
      • 2014-03-23
      • 2019-08-22
      • 1970-01-01
      • 2017-06-13
      相关资源
      最近更新 更多