编辑完php文件后,我的wordpress网站出现了问题,我开始收到此错误:
解析错误:语法错误,第1行/pf-grid-shortcodes-static.php中的意外'pf_itemgrid2_func'(T_STRING)
即使在撤消更改并将文件替换回原始文件后我仍然不断发现错误,我甚至将完整的代码放在php代码检查器中,并且没有任何内容显示。以下是该php文件的第一行代码,非常感谢有关该主题的任何建议。
<?php
function pf_itemgrid2_func( $atts ) {
extract (shortcode_atts(array(
'listingtype' => '',
'itemtype' => '',
'conditions' => '',
'locationtype' => '',
'posts_in' => '',
'sortby' => 'ASC',
'orderby' => 'title',
'items' => 8,
'cols' => 4,
'features'=>array(),
'filters' => 'true',
'itemboxbg' => '',
'grid_layout_mode' => 'fitRows',
'featureditems' => '',
'featureditemshide' => '',
'authormode' => 0,
'agentmode' => 0,
'author' => '',
'manualargs' => '',
'hidden_output' => '',
'ne' => '',
'ne2' => '',
'sw' => '',
'sw2' => '',
'listingtypefilters' => '',
'itemtypefilters' => '',
'locationfilters' => '',
'tag' => ''
), $atts ) );
以下是完整代码的pastebin文件的链接: