{"id":81854,"date":"2018-02-24T13:34:04","date_gmt":"2018-02-24T13:34:04","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/wordpress-expert-agent-xml-feed\/"},"modified":"2020-10-22T00:51:40","modified_gmt":"2020-10-22T00:51:40","slug":"wp-expert-agent-xml-feed","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/wp-expert-agent-xml-feed\/","author":15967371,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"2.1.3","stable_tag":"trunk","tested":"5.5.18","requires":"","requires_php":"5.6","requires_plugins":"","header_name":"WordPress Expert Agent XML Feed","header_author":"FSE Online Ltd","header_description":"Fetch daily for your specified Expert Agent XML feed using wp-cron.","assets_banners_color":"a9c7b4","last_updated":"2020-10-22 00:51:40","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"http:\/\/www.fse-online.co.uk\/?utm_source=wordpress&utm_medium=plugin&utm_campaign=WordPress%20Expert%20Agent%20XML%20Feed","rating":5,"author_block_rating":0,"active_installs":10,"downloads":1080,"num_ratings":0,"support_threads":1,"support_threads_resolved":0,"author_block_count":0,"sections":["description","faq"],"tags":{"1.0.0":{"tag":"1.0.0","author":"fseonline","date":"2018-02-24 15:55:56"},"1.0.2":{"tag":"1.0.2","author":"fseonline","date":"2018-09-23 06:33:44"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":1828270,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":1828270,"resolution":"256x256","location":"assets","locale":""},"icon.svg":{"filename":"icon.svg","revision":1828270,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":1828270,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":1828270,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.2"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":1828270,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":1828270,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":1828270,"resolution":"3","location":"assets","locale":""}},"screenshots":{"1":"Add your FTP login details as provided by Expert Agent. Contact Expert Agent if you have forgotten your XML feed FTP login details.","2":"Upon clicking the button \u2018Fetch XML File\u2019, you will find your downloaded file in your Uploads Folder.","3":"Here is a visual of drilling down the folders towards the XML file."}},"plugin_section":[],"plugin_tags":[83,153527,252,7342,748],"plugin_category":[],"plugin_contributors":[78154,153528],"plugin_business_model":[],"class_list":["post-81854","plugin","type-plugin","status-closed","hentry","plugin_tags-admin","plugin_tags-expert-agent","plugin_tags-feed","plugin_tags-ftp","plugin_tags-xml","plugin_contributors-freemius","plugin_contributors-fseonline","plugin_committers-fseonline"],"banners":[],"icons":{"svg":"https:\/\/ps.w.org\/wp-expert-agent-xml-feed\/assets\/icon.svg?rev=1828270","icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-expert-agent-xml-feed_a9c7b4.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/wp-expert-agent-xml-feed\/assets\/screenshot-1.png?rev=1828270","caption":"Add your FTP login details as provided by Expert Agent. Contact Expert Agent if you have forgotten your XML feed FTP login details."},{"src":"https:\/\/ps.w.org\/wp-expert-agent-xml-feed\/assets\/screenshot-2.png?rev=1828270","caption":"Upon clicking the button \u2018Fetch XML File\u2019, you will find your downloaded file in your Uploads Folder."},{"src":"https:\/\/ps.w.org\/wp-expert-agent-xml-feed\/assets\/screenshot-3.png?rev=1828270","caption":"Here is a visual of drilling down the folders towards the XML file."}],"raw_content":"<!--section=description-->\n<h3>Effortlessly fetch your XML feed daily<\/h3>\n\n<p>WordPress Expert Agent XML Feed lets you fetch the latest XML feed from your 3rd Party <a href=\"https:\/\/learningcentre.expertagent.co.uk\/ea-manual\/using-ea-data-in-your-website\/the-two-methods\/method-3-xml-feed\">Expert Agent property XML feed<\/a>.<\/p>\n\n<p>From the admin screen you can:<\/p>\n\n<ul>\n<li>Add a Remote File<\/li>\n<li>Add the Remote User (FTP) login details<\/li>\n<li>Fetch the latest XML feed via the button \u2018Fetch XML File\u2019<\/li>\n<\/ul>\n\n<h3>Pro \u2014 Built for Estate Agents<\/h3>\n\n<ul>\n<li>Go to the <strong>Pro<\/strong> plan, and receive priority developer support.<\/li>\n<li>Highly recommended for <strong>Estate Agents<\/strong><\/li>\n<li>Highly recommended for <strong>web developers<\/strong>, whose clients are Estate Agents<\/li>\n<\/ul>\n\n<p>Go Pro, visit <a href=\"https:\/\/checkout.freemius.com\/mode\/dialog\/plugin\/6857\/plan\/11566\/\">WordPress Expert Agent XML Feed PRO<\/a><\/p>\n\n<h4>Usage<\/h4>\n\n<ol>\n<li>Go to the <code>Settings -&gt; WordPress Expert Agent XML Feed<\/code> menu to manage settings for fetching the XML feed.<\/li>\n<li>Input your Remote (FTP) Filename e.g. <code>properties.xml<\/code>, as well as your FTP Username and Password.<\/li>\n<li>Click the button \u2018Fetch XML File\u2019 to connect to FTP, and download the latest copy of the XML feed.<\/li>\n<li>A scheduler is already set up for you that will automatically download the XML feed every 24 hours.<\/li>\n<\/ol>\n\n<h3>Gutenberg-Ready<\/h3>\n\n<p>This notice is to mention that you shouldn\u2019t have any issues with this plugin and Gutenberg (as this plugin doesn\u2019t have to relate with Gutenberg).<\/p>\n\n<p>Go Pro, receive <strong>always-there<\/strong> support <a href=\"https:\/\/checkout.freemius.com\/mode\/dialog\/plugin\/6857\/plan\/11566\/\">WordPress Expert Agent XML Feed PRO<\/a><\/p>\n\n<!--section=faq-->\n<dl>\n<dt><h3>How do I know that the XML feed is working?<\/h3><\/dt>\n<dd><p>After you\u2019ve specified your FTP server and login details which Expert Agent will have provided for you, you will have to click the button \u2018Fetch XML File\u2019.<\/p>\n\n<p>Afterwards, a successful notice should appear, and will mention if the file download is successful.<\/p><\/dd>\n<dt><h3>Is this the official plugin from Expert Agent?<\/h3><\/dt>\n<dd><p>Unfortunately not yet, but we are working with Expert Agent to make sure that this plugin is kept robust.<\/p><\/dd>\n<dt><h3>Where can I find my Remote URL, User, and Password login details?<\/h3><\/dt>\n<dd><p>These are the FTP details given to you by Expert Agent.<\/p>\n\n<p>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.<\/p>\n\n<p>You can also email them at <a href=\"mailto:&#x73;&#x75;&#x70;&#x70;&#x6f;&#x72;&#x74;&#x40;&#x65;&#x78;&#x70;&#x65;&#x72;&#x74;&#x61;&#103;&#101;&#110;&#116;&#046;&#099;&#111;&#046;&#117;&#107;\">support@expertagent.co.uk<\/a><\/p><\/dd>\n<dt><h3>The XML feed is now working, how do I extract its data?<\/h3><\/dt>\n<dd><p>Unfortunately this plugin does not provide extracting the data.<\/p>\n\n<p>It is up to you or your developer to extract the data, e.g. using PHP through <a href=\"http:\/\/php.net\/manual\/en\/simplexml.examples-basic.php\">simpleXML<\/a>.<\/p><\/dd>\n<dt><h3>Why did you place the file under the Uploads folder?<\/h3><\/dt>\n<dd><p>This is the proper place for a plugin to generate its files.<\/p><\/dd>\n<dt><h3>Can you give me an example on how I can output\/use the XML file?<\/h3><\/dt>\n<dd><p>It is up to you or your developer to extract the data, e.g. using PHP through <a href=\"http:\/\/php.net\/manual\/en\/simplexml.examples-basic.php\">simpleXML<\/a>.<\/p>\n\n<p>For example, let us get the \u2018Property of the Week\u2019:<\/p>\n\n<pre><code>&lt;?php\n\n    \/\/ First check if properties.xml file exists\n    $upload_dir = wp_upload_dir();\n    $propertiesXML = $upload_dir['basedir'] . '\/wp-expert-agent-xml-feed\/xml\/properties.xml';\n    if( file_exists( $propertiesXML ) ):\n\n        \/\/ Let's get the XML file for the properties...\n        $agency = new SimpleXMLElement( file_get_contents( $propertiesXML ) );\n\n        $properties = $agency-&gt;branches-&gt;branch-&gt;properties;\n        $property = $properties-&gt;property;\n\n        \/\/ Let's get the first 'propertyofweek' we can find...\n        \/\/ Then break apart once we find it!\n        for ($i=0; $i &lt; sizeof($property); $i++) {\n            if( $property[$i]-&gt;propertyofweek == 'Yes' ) {\n                $propertyofweek_price_text = $property[$i]-&gt;price_text;\n                $propertyofweek_advert_heading = $property[$i]-&gt;advert_heading;\n                $propertyofweek_main_advert = $property[$i]-&gt;main_advert;\n                $propertyofweek_web_link = $property[$i]-&gt;web_link;\n                $propertyofweek_picture_filename = $property[$i]-&gt;pictures-&gt;picture-&gt;filename;\n                break;\n\n            }\n\n        }\n\n ?&gt;\n &lt;!-- Property of the week Title --&gt;\n &lt;h2&gt;&lt;?php echo $propertyofweek_advert_heading; ?&gt;&lt;\/h2&gt;\n<\/code><\/pre><\/dd>\n<dt><h3>What is a cron job?<\/h3><\/dt>\n<dd><p>It\u2019s your web server\u2019s built-in scheduler, so that you can action code depending on the time. WordPress has wp-cron.php which integrates WordPress with your server\u2019s cron system.<\/p><\/dd>\n<dt><h3>Where do I input the FTP Server?<\/h3><\/dt>\n<dd><p>You don\u2019t need to, as we have specified this for you as <code>ftp.expertagent.co.uk<\/code>.<\/p><\/dd>\n\n<\/dl>","raw_excerpt":"WordPress Expert Agent XML Feed relies on the 3rd Party Expert Agent FTP to let you fetch the latest XML feed from your Expert Agent property feed.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/81854","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=81854"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/fseonline"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=81854"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=81854"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=81854"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=81854"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=81854"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=81854"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}