WordPress Expert Agent XML Feed

WordPress Expert Agent XML Feed lets you fetch the latest XML feed from your 3rd Party Expert Agent property XML feed.

From the admin screen you can:
* Add Remote File
* Add Remote User login details
* Fetch the latest XML feed manually via the button ‘Fetch XML File’

Usage

  1. Go to the Settings -> WordPress Expert Agent XML Feed menu to manage settings for fetching the XML feed.

How do I know that the XML feed is working?

After you’ve specified your FTP server and login details which Expert Agent will have provided, you will have to click the button ‘Fetch XML File’. Afterwards, a successful notice should appear, and will mention if the file download is successful.

Is this the official plugin from Expert Agent?

Unfortunately not yet, but we are working with Expert Agent to make sure that this plugin is kept robust.

Where can I find my Remote URL, User, and Password login details?

These are the FTP details given to you by Expert Agent.
You will need to create a Log Ticket through the Expert Agent Management system, informing them that you would like to ask for the XML feed FTP login details.
You can also email them at support@expertagent.co.uk

The XML feed is now working, how do I extract its data?

Unfortunately this plugin does not provide extracting the data. It is up to you or your developer to extract the data, e.g. using PHP through simpleXML.

Why did you place the file under the Uploads folder?

This is the proper place for a plugin to generate its files.

Can you give me an example on how I can output/use the XML file?

It is up to you or your developer to extract the data, e.g. using PHP through simpleXML.

For example, let us get the ‘Property of the Week’:

branches->branch->properties;
    $property = $properties->property;

    // Let\'s get the first \'Propertyofweek\' we can find...
    // Then break apart once we find it!
    for ($i=0; $i < sizeof($property); $i++) {
      if( $property[$i]->propertyofweek == \'Yes\' ) {
        $propertyofweek_price_text = $property[$i]->price_text;
        $propertyofweek_advert_heading = $property[$i]->advert_heading;
        $propertyofweek_main_advert = $property[$i]->main_advert;
        $propertyofweek_web_link = $property[$i]->web_link;
        $propertyofweek_picture_filename = $property[$i]->pictures->picture->filename;
        break;

      }

    } ?>



?>
What is a cron job?

It’s your web server’s built-in scheduler, so that you can action code depending on the time. WordPress has wp-cron.php which integrates WordPress with your server’s cron system.

For WordPress Expert Agent XML Feed\’s changelog, please see the Releases page on GitHub.

View full post on WordPress Plugins

Join the Conversation

1 Comment

Leave a comment

Your email address will not be published. Required fields are marked *