errore importazione file xml lista annunci immobiliari – wp residence
-
I have a problem configuring the importation of an XML file with WP All Import. I use the WP Residence theme, for which the WP All Import plugin provides an add-on. I need to import the XML file generated by the real estate management system, which consists of real estate listings. Some values within the file are boolean, while others are numeric. The boolean values are structured like this:
<info id="5"> <id>5</id> <valore_assegnato>1</valore_assegnato> </info>
where id 5 corresponds to a specific feature of the property listed in the ad. When the value is 0, the feature is not present; when it is 1, the feature is present and must be displayed. I have set up the following PHP function:
function interpreta_valore_booleano($valore) { // Returns an empty string if the value is 0, indicating that it should not be displayed return $valore == '1' ? 'Presente' : ''; }
but it doesn’t work, all the features are present in taxonomies. Can someone tell me how to set up the function correctly? Thank you very much.
- The topic ‘errore importazione file xml lista annunci immobiliari – wp residence’ is closed to new replies.