将Xpath筛选器匹配为设置为不导入具有城市的属性时
甘迪亚,这是可行的,但有些房产有甘迪亚,贾维娅。所以它不匹配。
问题似乎在于这个角色。
/property[price[1] > 5000 and town[1] != "Jávea" and town[1] != "Calpe" and town[1] != "Elche" and town[1] != "Gandía" and town[1] != "Oliva" and town[1] != "Valencia" and town[1] != "Valle de Albaida"]
最合适的回答,由SO网友:Ankit Prajapati 整理而成
最后,我在wp all import的文档中找到了这个问题的解决方案
https://www.wpallimport.com/documentation/troubleshooting/encoding/
如果您确定您的XML文件是有效的,它没有使用UTF-8编码,并且WP All Import仍然拒绝它,请尝试在子主题的函数中添加此代码段。php文件
add_filter( \'is_xml_preprocess_enabled\', \'wpai_is_xml_preprocess_enabled\', 10, 1 );
function wpai_is_xml_preprocess_enabled( $is_enabled ) {
return false;
}