当匹配Xpath筛选器设置为不导入具有城市的属性时
甘迪亚,这是可行的,但有些财产是Gandía,Jávea。所以它不是匹配的。
问题似乎与这些字符有关。
/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"]
发布于 2020-07-29 13:29:07
最后,我在wp所有导入的文档中找到了这个问题的解决方案。
https://www.wpallimport.com/documentation/troubleshooting/encoding/
如果您确信您的XML文件是有效的,它不使用UTF-8编码,而且WP All Import仍然拒绝它,请尝试在您的子主题的functions.php文件中添加以下代码片段
add_filter( 'is_xml_preprocess_enabled', 'wpai_is_xml_preprocess_enabled', 10, 1 );
function wpai_is_xml_preprocess_enabled( $is_enabled ) {
return false;
}https://wordpress.stackexchange.com/questions/371145
复制相似问题