Solved

WordPress - Generating custom XML file via Loop contents

Posted on 2011-09-06
2
190 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
2 Comments
 
LVL 108

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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 is …
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

911 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now