Solved

WordPress - Generating custom XML file via Loop contents

Posted on 2011-09-06
2
194 Views
Last Modified: 2012-08-13
Hey,

I am wondering if it is possible to generate a custom XML file using WordPress. I want to pull information and create a google map with multiple markers. XML would be like:

<markers>
<marker>HTML HERE FOR BOX</marker>
</markers>

I would use a query to pull data from a custom post type. Can WordPress generate custom XML?

Thanks,

Ryan
0
Comment
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 110

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 36490137
Not sure if WordPress is the right tool for this, but if we can see your test data input and desired outputs we can show you how to do it in PHP.  And since WP is written in PHP it might be easy to integrate the XML generator into your WP code.
0
 
LVL 12

Expert Comment

by:coredatarecovery
ID: 36491649
Yes, you can do this.

You can also see examples in the google sitemap generator plugin, just open the plugin files and browse the code to get an idea of how they go about it.
0

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Node.js 11 82
How to make mobile number validation in contact form 7? 4 23
Best hashing method? 1 23
Developers / Staff Setup 10 48
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question