Advertisement
Guest User

Untitled

a guest
Feb 26th, 2015
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.05 KB | None | 0 0
  1. 'posts_per_page' => -1,
  2.  
  3. 'posts_per_page' => 1,
  4.  
  5. <?php
  6. /**
  7. * XML feed generator template.
  8. */
  9. header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true);
  10. $more = 1;
  11. echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?>
  12. <?php
  13. global $query_string;
  14.  
  15. $args = array(
  16. 'numberposts' => '',
  17. 'posts_per_page' => -1,
  18. 'offset' => 0,
  19. 'cat' => '',
  20. 'orderby' => 'date',
  21. 'order' => 'DESC',
  22. 'include' => '',
  23. 'exclude' => '',
  24. 'meta_key' => '',
  25. 'meta_value' => '',
  26. 'post_type' => 'property',
  27. 'post_mime_type' => '',
  28. 'post_parent' => '',
  29. 'paged' => '',
  30. 'post_status' => 'publish'
  31. );
  32.  
  33. query_posts( $args );?>
  34.  
  35. <?php while( have_posts()) : the_post(); ?>
  36.  
  37. <Listings>
  38. <Listing>
  39. <Location>
  40. <StreetAddress></StreetAddress>
  41. <UnitNumber></UnitNumber>
  42. <City></City>
  43. <State></State>
  44. <Zip></Zip>
  45. <Lat></Lat>
  46. <Long></Long>
  47. <DisplayAddress><?php echo get_post_meta($post->ID, "nt_neighborhood", true);? </DisplayAddress>
  48. </Location>
  49. <ListingDetails>
  50. <Status></Status>
  51. <Price><?php listing_price();?></Price>
  52. <ListingUrl><?php the_permalink_rss() ?></ListingUrl>
  53. <MlsId><?php the_ID(); ?></MlsId>
  54. <MlsName></MlsName>
  55. <VirtualTourUrl></VirtualTourUrl>
  56. <ListingEmail><?php the_author_meta('user_email'); ?></ListingEmail>
  57. <AlwaysEmailAgent></AlwaysEmailAgent>
  58. </ListingDetails>
  59. <RentalDetails>
  60. <Availability><?php echo get_post_meta($post->ID, "nt_heating", true);?>< </Availability>
  61. <LeaseTerm></LeaseTerm>
  62. <DepositFees></DepositFees>
  63. <UtilitiesIncluded>
  64. <Water></Water>
  65. <Sewage></Sewage>
  66. <Garbage></Garbage>
  67. <Electricity></Electricity>
  68. <Gas></Gas>
  69. <Internet></Internet>
  70. <Cable></Cable>
  71. <SatTV></SatTV>
  72. </UtilitiesIncluded>
  73. <PetsAllowed>
  74. <NoPets><?php echo get_post_meta($post->ID, "nt_parking", true);?></NoPets>
  75. <Cats></Cats>
  76. <SmallDogs></SmallDogs>
  77. <LargeDogs></LargeDogs>
  78. </PetsAllowed>
  79. </RentalDetails>
  80. <BasicDetails>
  81. <PropertyType></PropertyType>
  82. <Title><?php the_title_rss() ?></Title>
  83. <Description><?php the_content(); ?></Description>
  84. <Bedrooms></Bedrooms>
  85. <Bathrooms></Bathrooms>
  86. <FullBathrooms></FullBathrooms>
  87. <HalfBathrooms></HalfBathrooms>
  88. <LivingArea></LivingArea>
  89. <LotSize></LotSize>
  90. <YearBuilt></YearBuilt>
  91. </BasicDetails>
  92. <Pictures>
  93. <Picture>
  94. <PictureUrl></PictureUrl>
  95. <Caption></Caption>
  96. </Picture><Picture>
  97. <PictureUrl></PictureUrl>
  98. <Caption></Caption>
  99. </Picture>
  100. </Pictures>
  101. <Agent>
  102. <FirstName><?php the_author() ?></FirstName>
  103. <LastName></LastName>
  104. <EmailAddress><?php the_author_meta('user_email'); ?></EmailAddress>
  105. <PictureUrl></PictureUrl>
  106. <OfficeLineNumber></OfficeLineNumber>
  107. <MobilePhoneLineNumber></MobilePhoneLineNumber>
  108. <FaxLineNumber></FaxLineNumber>
  109. </Agent>
  110. <Office>
  111. <BrokerageName></BrokerageName>
  112. <BrokerPhone></BrokerPhone>
  113. <StreetAddress></StreetAddress>
  114. <UnitNumber></UnitNumber>
  115. <City></City>
  116. <State></State>
  117. <Zip></Zip>
  118. </Office>
  119. <OpenHouses>
  120. </OpenHouses>
  121. <Neighborhood>
  122. <Name></Name>
  123. <Description></Description>
  124. </Neighborhood>
  125. <RichDetails>
  126. <AdditionalFeatures></AdditionalFeatures>
  127. <Appliances>
  128. <Appliance></Appliance>
  129. <Appliance></Appliance>
  130. </Appliances>
  131. <ArchitectureStyle></ArchitectureStyle>
  132. <Attic></Attic>
  133. <Basement></Basement>
  134. <CableReady></CableReady>
  135. <CoolingSystems>
  136. <CoolingSystem></CoolingSystem>
  137. </CoolingSystems>
  138. <Deck></Deck>
  139. <DoublePaneWindows></DoublePaneWindows>
  140. <ExteriorTypes>
  141. <ExteriorType></ExteriorType>
  142. <ExteriorType></ExteriorType>
  143. </ExteriorTypes>
  144. <Fireplace></Fireplace>
  145. <FloorCoverings>
  146. <FloorCovering></FloorCovering>
  147. <FloorCovering></FloorCovering>
  148. <FloorCovering></FloorCovering>
  149. </FloorCoverings>
  150. <Garden></Garden>
  151. <HeatingFuels>
  152. <HeatingFuel></HeatingFuel>
  153. </HeatingFuels>
  154. <HeatingSystems>
  155. <HeatingSystem></HeatingSystem>
  156. </HeatingSystems>
  157. <JettedBathTub></JettedBathTub>
  158. <Lawn></Lawn>
  159. <MotherInLaw></MotherInLaw>
  160. <NumFloors></NumFloors>
  161. <NumParkingSpaces></NumParkingSpaces>
  162. <ParkingTypes>
  163. <ParkingType></ParkingType>
  164. <ParkingType></ParkingType>
  165. </ParkingTypes>
  166. <Patio></Patio>
  167. <Porch></Porch>
  168. <RoofTypes>
  169. <RoofType></RoofType>
  170. </RoofTypes>
  171. <RoomCount></RoomCount>
  172. <Rooms>
  173. <Room></Room>
  174. <Room></Room>
  175. <Room></Room>
  176. <Room></Room>
  177. <Room></Room>
  178. </Rooms>
  179. <SecuritySystem></SecuritySystem>
  180. <Skylight></Skylight>
  181. <SprinklerSystem></SprinklerSystem>
  182. <ViewTypes>
  183. <ViewType></ViewType>
  184. <ViewType></ViewType>
  185. </ViewTypes>
  186. <Waterfront></Waterfront>
  187. <WhatOwnerLoves></WhatOwnerLoves>
  188. <YearUpdated></YearUpdated>
  189. <FitnessCenter></FitnessCenter>
  190. <BasketballCourt></BasketballCourt>
  191. <TennisCourt></TennisCourt>
  192. <NearTransportation></NearTransportation>
  193. <ControlledAccess></ControlledAccess>
  194. <Over55ActiveCommunity></Over55ActiveCommunity>
  195. <AssistedLivingCommunity></AssistedLivingCommunity>
  196. <Storage></Storage>
  197. <FencedYard></FencedYard>
  198. <PropertyName></PropertyName>
  199. <Furnished></Furnished>
  200. <HighspeedInternet></HighspeedInternet>
  201. <OnsiteLaundry></OnsiteLaundry>
  202. <CableSatTV></CableSatTV>
  203. <Taxes></Taxes>
  204. </RichDetails>
  205. </Listing>
  206. </Listings>
  207. <?php endwhile;?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement