Questions tagged [xml]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
7
votes
10answers
51k views

Import Wordpress xml file larger than 8mb

I'm trying to import a xml file (from a previous wordpress theme) into a new wordpress theme. The problem is that the xml file is 46mb much bigger than the wordpress 8mb limit. Anyone have any advice/...
7
votes
3answers
9k views

How to add post featured image to RSS item tag?

I am able to add a post featured image to the RSS feed like so: function insertThumbnailRSS($content) { global $post; if(has_post_thumbnail($post->ID)){ $content = ''....
6
votes
4answers
11k views

Import Wordpress XML File from Within Functions.php

I am developing a theme which has a different method of adding in content and so, the default install of Wordpress won't show any content because of this. I was wondering if it is possible to ...
6
votes
2answers
11k views

What is the required format for importing posts into Wordpress?

I have several posts in an Microsoft Excel file (.csv/.xls). I want to know the appropriate format of the file to import into Wordpress.com. Note: I do not need help to convert the csv format into ...
6
votes
1answer
4k views

Plugin or advice on how to parse XML in real-time?

I am working on a project for my university basketball team. During each game their statistics software will create an XML file and update it mid-game with player statistics, shots, etc. What I ...
5
votes
2answers
9k views

When importing - failed to import: Invalid post type feedback

I am attempting to import a site using XML generated by WordPress.com All the posts and media seem to import, but the comments fail with errors Failed to import “Sarah Toon - 2015-10-10 08:29:30”: ...
4
votes
1answer
3k views

Is it possible to export WordPress from command line?

Is it possible to export WordPress from command line? I don't mean use mysqldump to export the database, but create the xml file used to easily import to another WordPress installation.
4
votes
3answers
1k views

Hook for URL Request

I would like to make XML files downloadable, instead of allowing the browser to displaying them inline. I know I can use the Content-Disposition: attachment HTTP header (of course, better solutions ...
4
votes
1answer
3k views

With WordPress Importer, why can't I import post meta containing a multi-dimensional array, in which value(s) of that array contain line breaks?

The Question With WordPress Importer, why can't I import post meta containing a multi-dimensional array, in which value(s) of that array contain line breaks? Is there a workaround that I can do to ...
3
votes
2answers
2k views

Localizing text from XML files

Do you guys know any way I could automatically pick up strings from .xml files and store them in a .po / .pot file, just like PoEdit does with the ones from .php files? The XML structure looks like ...
3
votes
1answer
3k views

parse XML from URL (via SOAP)

I am attempting to build out a dashboard widget that will perform a validation check on a site RSS feed using the W3 Validator. Their API docs (http://feed2.w3.org/docs/soap.html) provide the method. ...
3
votes
1answer
2k views

How can I get an XML export of my 1K+ posts WordPress instance?

I'd like to export my database to XML because the import script to my new blog already supports getting data from that. A database backup or wordpress clone is not that useful in this case. The ...
3
votes
2answers
5k views

Importing WordPress Attachments Into Custom Directories In wp-content/uploads/

I am hoping that someone can shed light on this problem I am trying to solve, even if simply changing my thought process as to how I could solve this. I am importing a custom CakePHP based CMS web ...
3
votes
1answer
7k views

What server settings are required to import WordPress XML file

I am trying to import my site using the WordPress import XML page. My XML file is 7mb so when I try to import it I receive a "500 Internal Server Error" page. I read some other posts and tried using ...
3
votes
2answers
3k views

How to re-Import the WordPress XML file after editing?

I have exported all my content to WordPress XML file via WordPress>Tools>Export as I needed to edit 300 posts at a time. Now, my concern is how to re import the file to override the default one? By ...
3
votes
0answers
30 views

WordPress trims off the forward slash when import

I have an XML file with some posts to import to WordPress But, when I import, it seems that WordPress takes off the forward slash from the permalink, so instead of showing the address like this: ...
2
votes
3answers
2k views

Save page data to an xml file

Is it possible to continually update an xml file on the server with data from a wordpress page? If so, how could I do it? I use this plugin http://plugins.elliotcondon.com/advanced-custom-fields/ to ...
2
votes
2answers
11k views

How to read the xml file in wordpress?

I have a feed link http://www.wdcdn.net/rss/presentation/library/client/iowa/id/128b053b916ea1f7f20233e8a26bc45d and I have to read all the elements of feed including credits, here is how the feed is ...
2
votes
3answers
6k views

How to add featured image or custom field to xml feed?

I already tried the plugins RSS Manager, Add featured image to RSS feed and Featured Image In Rss Feed. But all they do is add the image inside the <description> attribute of the xml feed. ...
2
votes
2answers
420 views

How to duplicate a curl XML request using HTTP API?

I am working on a plugin that posts an XML request to a vendor's shipping API to get shipping quotes. The XML is stored in a string called $xml. I can post the XML request successfully with curl using ...
2
votes
1answer
3k views

How do I Import an RSS feed as Wordpress posts without duplicates?

I have an XML feed url I am now using this code to create new Custom Post Type Posts from an rss feed in my functions.php file: /* | ---------------------------------------------------------------...
2
votes
1answer
4k views

Create custom page in WooCommerce

I would like to create a blank page, which is used to list out the product by the category , so far I have found some code like this: $args = array( 'post_type' => 'product', '...
2
votes
1answer
3k views

Wordpress import does not fetch images, but just links them

I have used the Wordpress Importer plugin to export content from site 1 and import into site 2. When exporting content, i selected "All content" and downloaded the export XML file. Then when i ...
2
votes
1answer
2k views

Create Posts using Import>RSS/WXR/XML and pass values to Custom Fields

My problem is simple. I need to make a lot of posts containing image url's for a "photo gallery" page. I've read up a lot on creating posts from RSS feeds and imports. I've been successful at creating ...
2
votes
2answers
5k views

How to get a Google maps SQL->XML->map marker tutorial to work in WordPress

I have been trying to figure out what is wrong with my code for a couple days now, and I can't seem to crack it. I am trying to follow this tutorial I tried all three of the suggested methods to ...
2
votes
1answer
2k views

Create XML files on post edit screen

Ok, that's a weird question, I know.. I'm so confortable with WP that I don't want to use any other application to generate XML (KML - Editors note: These are Google Earth files.) files. I want to ...
2
votes
2answers
249 views

Problems with creating hook that updates XML

I have been working on a plugin for Wordpress, that updates an XML file with elements from the post. I have used a third party plugin to create the field for the XML, and so far that is working. I am ...
2
votes
1answer
40 views

How can I process xml file on upload?

I need to process an XML-file after an admin uploads it in the wordpress backend. 1) I created the form: function x_show_settings_page(){ ?> <form method="post"> <table class="form-...
2
votes
0answers
732 views

Best practice to import/export specific pages and posts

I just started using a local host to work on my website on my desktop (using LAMP from Bitnami). The native wordpress export feature for pages and posts lets me choose date range, but only a month ...
1
vote
3answers
188 views

$wpdb -> Batch insert from XML File?

Actually im stuck on this! XML-File ~ 140.000 Rows Filesize ~ 9.0 MB LOAD XML INFILE 'file_name' isnt't allowed ( shared hosting! ) The supplier provides a single XML file with quantity and sku. The ...
1
vote
2answers
7k views

How do you get all the urls of images attached to a post?

I've searched high and low and can't seem to get it. I'm trying to output an XML feed with all the images attached to a post from a custom post type: </BasicDetails> <Pictures> <...
1
vote
2answers
941 views

Search XML file from within Wordpress?

We use Jira internally for an defect mgmt system. We want to provide defect tracking to our clients. We cannot expose Jira to the web, but we do have our main site hosted on WP 3.2.1 I can export a ...
1
vote
2answers
157 views

How to limit the content coming from wordpress shortcodes?

I am working on a wordpress shortcodes in which I want to the limit the content coming from a xml. The code which I have used for wordpress shortcodes is: function podcast_func( $content = null ){ ...
1
vote
1answer
8k views

Loading posts via AJAX in a hidden div with updated URL?

I'm using the code below to asynchronously load posts on the same index page via AJAX. I would like to be able to update the URL as well but am unsure how I can go about adding that to what I ...
1
vote
2answers
2k views

Importing wordpress. xml file on new installation

I am trying to move a wordpress installation to a new server. I usualy create a new database using phpmyadmin on the new server, import the sql file from the old server, then install wordpress but ...
1
vote
1answer
63 views

Publish an XML feed from a CPT with ACF fields?

looking to develop a website for a recruitment agency and they want to sync their jobs board with Indeed. From chatting to the rep, they said we'll need to provide an XML feed to Indeed in the ...
1
vote
1answer
254 views

How can I export post data in xml format?

Just want to ask simple thing how can I fetch post data and save it into XML format. Is it possible and good idea to fetch data from WordPress rest API and exports it in XML format using export_wp() ...
1
vote
2answers
1k views

XML asset fails to load using https

The wp-admin are of my site is available via https only; for that reason any use of get_template_directory_uri(); in the admin area generates a url as such https://mysite.co.uk/... I am able to ...
1
vote
1answer
185 views

How to properly loop through these external URLs to get them into the sitemap using this hook

I have filtered Urls that I would like to add to push into a sitemap. I am using one of the sitemap plugins, which has hooks to further modify it. my code: // add to theme's functions.php ...
1
vote
1answer
42 views

Widget with same content across several websites

I'm managing a couple of websites from the same client. They have lots of partners and have a logo slider on the bottom of each page across 5 websites. The partners change from time to time and the ...
1
vote
2answers
3k views

The problem with Wordpress Importer

I've tried many times to upload theme-unit-test-data.xml from http://codex.wordpress.org/Theme_Unit_Test But when I'm trying to upload this file in WordPress Importer it gives me an error saying: ...
1
vote
1answer
932 views

Rewrite WordPress Standard Feed URL - /feed/ to feed.xml

I want to rewrite http://www.ourdomain.com/feed/ in the .htaccess file to http://ourdomain.com/feed.xml And we have some other feed URLs to Rewrite. After a search I could not find the correct ...
1
vote
1answer
2k views

RSS/XML of all Categories and/or Tags

Is it possible to get an RSS / XML feed of all WordPress Categories and/or Tags? I've searched the Codex, which was very helpful in giving examples on how to access specific, individual RSS feeds, ...
1
vote
1answer
555 views

Post processing of uploaded file

When a file with the .xml extension has been uploaded on my blog (via the Add Media uploader) I would like to automatically replace some attributes. For example, if I upload a file with this content: ...
1
vote
1answer
168 views

Using WPDB to output raw XML fails because of wp-blog-header.php

I'm coding a plugin. One particular file of this plugin is supposed to pull data from the plugin's custom DB table, and output it with minimal processing as raw XML. The problem is, to get the WPDB ...
1
vote
1answer
13k views

Failed to Open Stream: Permission Denied While Writing to an XML File in a WordPress Plugin

I'm trying to write to an XML file in a WordPress Plugin. I'm on my local machine, a Mac running MAMP. I have PHP 5.2.13 My code is: $file_handle = fopen('markers.xml', 'w'); $stringdata = "Test ...
1
vote
1answer
719 views

update_post_meta, xml parser

I'm hitting the wall for nearly two hours now, trying to figure this out. Here is the thing' I have made a xml parser to read xml file and add posts (with content) from xml: $ch = curl_init( "http://...
1
vote
1answer
26 views

Output and filter data from a XML url

I have a URL provided by my Real Estate service that lists, in a XML file, every apartment and house that I have to sell. The XML url lists every detail of every apartment, things like images, year ...
1
vote
0answers
30 views

How to make a XML/PHP file returning custom field data from page

I want to make a make a Ajax search bar that uses an XML file that will be made from the acf of the users profile page that gets return from the PHP template. How do I go about creating an XML file ...
1
vote
1answer
346 views

How to block XML-RPC attack?

Using Apache Web Server For blocking xmlrpc, adding this code into .htaccess file <Files xmlrpc.php> order allow,deny deny from all </Files> But while adding this The domain being ...