• Resolved grwebsite

    (@grwebsite)


    Integrating wordpress with ad sites and customizing the XML file

    Exemple:

    XML

    <?xml version=’1.0′ encoding=’UTF-8′?>
    <ADS>
    <AD>
    <ID><![CDATA[001]]></ID>
    <TITLE><![CDATA[2009 Ford Escort – Excellent condition – 150,000 miles]]></TITLE>
    <DESCRIPTION><![CDATA[Nesta descrição teste, poderemos proteger caracteres que poderiam normalmente interferir em um XML, utilizando o envoltório CDATA nos textos literais.]]></DESCRIPTION>
    <EMAIL><![CDATA[ sales@yourdomain.com ]]></EMAIL>
    <PHONE><![CDATA[ 123 555 1234 ]]></PHONE>
    <ADDRESS><![CDATA[ 123 Fake Street ]]></ADDRESS>
    <ZIP_CODE><![CDATA[ 00000 ]]></ZIP_CODE>
    <LOCATION_COUNTRY><![CDATA[ US ]]></LOCATION_COUNTRY>
    <LOCATION_STATE><![CDATA[ MA ]]></LOCATION_STATE>
    <LOCATION_CITY><![CDATA[ Springfield ]]></LOCATION_CITY>
    <CATEGORY><![CDATA[ 378 ]]></CATEGORY>
    <YEAR>2009</YEAR>
    <MAKE>Ford</MAKE>
    <MODEL>Focus</MODEL>
    <MILEAGE>150000</MILEAGE>
    <CONDITION>new</CONDITION>
    <IMAGE_URL><![CDATA[ http://www.yourdomain.com/image-1.png ]]></IMAGE_URL>
    <IMAGE_URL><![CDATA[ http://www.yourdomain.com/image-2.png ]]></IMAGE_URL>
    <IMAGE_URL><![CDATA[ http://www.yourdomain.com/image-3.png ]]></IMAGE_URL>
    <IMAGE_URL><![CDATA[ http://www.yourdomain.com/image-n.png ]]></IMAGE_URL>
    <PRICE>1000.00</PRICE>
    <CURRENCY>USD</CURRENCY>
    </AD>
    </ADS>

    http://wordpress.org/extend/plugins/custom-xml-feed/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author javiercorre

    (@javiercorre)

    Hi, you can do that. Adding ads to the xml is simple, you can just paste your ad code. However all the info like year, zip code, location, model… you need a function or a plugin to store that info in your database, then modify the feed-template.php to call all that info.

    Plugin Author javiercorre

    (@javiercorre)

    hope it helped

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Integrating wordpress with ad sites’ is closed to new replies.