Phi*_*lip 0 php wordpress wordpress-theming
2行代码切换broght我的整个网站.我想做的就是切换博客的摘录长度.所以我在一个函数中关闭了两行代码但是偶然丢失了那些代码行!这是一场灾难.我可以登录wp-admin,网站上的一些链接不起作用.
这是我切换的代码行:
function avada_excerpt_length( $length ) {
(this used to be two lines of short code, i remember the code $length was somewhere in it)
}
Run Code Online (Sandbox Code Playgroud)
这就是我用它取而代之的
function avada_excerpt_length( $length ) {
return: 55;
}
Run Code Online (Sandbox Code Playgroud)
您有语法错误:
return: 55;
Run Code Online (Sandbox Code Playgroud)
应该:
return 55;
Run Code Online (Sandbox Code Playgroud)