在wordpress帖子中添加默认代码

时间:2018-04-02 04:56:11

标签: html css wordpress web plugins

我想默认为所有新帖子添加一个简单的代码 我试图在.function.php(wpbeginner)

中使用这段代码
add_filter( 'default_content', 'my_editor_content' );
    function my_editor_content( $content ) {
        $content = "If you like this post, then please consider retweeting it or sharing it on Facebook.";
        return $content;
    }

我正在使用名为 Shortcodes Ultimate 的插件 代码:

[su_spoiler title="Download The File" style="fancy" icon="chevron-circle"]Here[/su_spoiler]

我试图正常使用简单的html和CSS代码,但它在两种情况下都显示相同的错误

https://i.stack.imgur.com/wgAs4.png

1 个答案:

答案 0 :(得分:1)

试试这个 - :你的代码是单引号,因为你已经在使用双引号。

{
    "query": {
      "multi_match": {
        "query": "ikea desk",
        "operator": "and"
      }
    }
}
相关问题