Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [xml]

The tag has no usage guidance.

0
votes
1answer
12 views

WP All import sale price 0 [closed]

I want to import woocommerce products from an xml file, i got a problem, with the sale price. In the provided xml some products sale price is “0,00”. I would like to skip theese cases, and import the ...
0
votes
0answers
16 views

WPallimport existing posts and repeater fields

I am using WPAllimport with the ACF addon. I am importing the first XML file with some data and creating the posts. Then i have a other xml file i want to import and update the existing posts with the ...
0
votes
2answers
32 views

Wordpress post insertion from PHP file

I have a website it's contains a lot of news, i have to list this news in one PHP file , now i want to insert each news in wordPress as a Post.. what is the best practice way to do that (the news are ...
0
votes
0answers
25 views

Create dynamic xml feed/link

A friend has asked me to help out on their wordpress site. They run a travel business site, and want to promote their tours on other sites. These sites have asked for a specific format of the tours in ...
0
votes
0answers
12 views

Image degradation after importing XML

I am switching my blog from Blogger to WordPress and importing XML file. Everything works fine except the images; the image quality is degraded/blurred due to low resolution. I found that the imported ...
0
votes
0answers
7 views

Unable to edit and save changes after xml import

I'm trying to upload a framework for sites that i build. Basically just a home page with elements ordered in a certain way. After exporting and importing an xml file, everything comes in in the order ...
0
votes
0answers
196 views

Rest API XML Output?

Is there a way to get the the exact same information from rest api endpoints in XML? Example: https://demo.wp-api.org/wp-json/wp/v2/posts I’m not looking for an RSS of latest posts, I want to ...
0
votes
0answers
22 views

How to show a splash screen from my plugin?

I am writing a plugin that user can import Wordpress XML files remotely. And in my environment I decided (described below) to postpone the process till the first visit. The importing process works ...
0
votes
0answers
6 views

how to add taxonomies labels on xml file

I had this plugin I want to add on it taxonomies labels if any one can help me please [enter link description here][1] this the index file of the pulgin https://pastebin.com/raw/HZLaweXg
0
votes
0answers
22 views

Hook/filter WordPress Importer plugin?

I have a large .xml (WXR) export from a historic WordPress site (6,000+ posts). I have installed the WordPress Importer plugin, and I'm able to use it to import the file. Whilst all posts' text gets ...
0
votes
1answer
167 views

Creating a WordPress addon for ContactForm7 submission (.XML file export)

I´m trying to create a plugin for WordPress to collect data from a website job-application form and generate a .XML file for each appliance ... I´m learning php. In this little code presented below, I´...
1
vote
1answer
137 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 ...
0
votes
0answers
55 views

How to import several big Import XMLs?

I have a dump of old site content from three years ago which I now need to get back up on my new site. At the time, I was told this was a "WP XML" backup, which I took to mean the kind of thing you ...
0
votes
0answers
18 views

stop duplicate post

i tried to make plugin import xml . That works fine except that the post id are duplicated always when am importing new data from xml . Here comes the code snippet: $ag_post_id = wp_insert_post(...
0
votes
1answer
97 views

Import post from XML files into custom post type programatically [closed]

How can i import post from XML file programatically in to custom post type without using any type of plugin in wordpress? Thanks in advance
0
votes
0answers
23 views

Format of XML response error message for term deletion

I want to disable the deletion of a taxonomy term I use the hook 'pre_delete_term', want to give an error message and then exit so the term does not get deleted. I can disable the delete but always ...
0
votes
1answer
676 views

SOAP Request/Parsing XML From wp_send_json_success

I'm developing a cURL and AJAX SOAP request to grab XML/WSDL data. The request is effectively grabbing the data I want and I am using wp_send_json_success(); to manipulate the response. The response I ...
3
votes
1answer
37 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-...
-1
votes
1answer
109 views

how to iterate through xml data?

I have connected an api and gotten a response in xml format which I have converted into array but now I am stuck at how to iterate through this array. For example I want to get all the comments from ...
0
votes
0answers
87 views

How can I import a Storify story into Wordpress

Storify is going. It is possible to export your stories, one at a time, and if using HTML format, they can be hosted and included in a wordpress post/page using an <iframe> tag. This is ugly ...
0
votes
0answers
58 views

Import (XML/WXR) fails on some posts

I'm importing from a third party system, for which I've written an export script. When running tests on a clean install, approximately 10% of posts fail to import. All other posts import fine, ...
0
votes
1answer
51 views

Wordpress ajax-action failing because of newline in response

When I'm using the dashboard, for example, adding a category. The request returns valid XML as expected, but it is prepended with a newline character, causing the DOMParser() to fail. I'm not sure ...
0
votes
0answers
61 views

Help, plugin XML error

Was using this plugin for years, but some months ago it stopped to work. I get this error: This page contains the following errors: error on line 2 at column 7: Extra content at the end of the ...
0
votes
0answers
18 views

Change load order due to .xml request slowing down my page

I couldn't find an answer down here, so I'll ask it myself. I have a module that does a request of gold price to an external site: $fileGold = "https://enigmaplugins.com/get_xml/gold.xml"; This ...
1
vote
1answer
118 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() ...
0
votes
0answers
677 views

How can I export data without using any import/export plugin

I am making a theme for myself so I have made simple theme options for customization I just want to add export function triggered by a button. I have checked these two examples Problem: Create a ...
1
vote
0answers
166 views

XML-code sent via the POST method to the URL (API) [closed]

I am building a webshop for a client who makes use of drop shipping service. The customer can place the order on the website and the order will be send to the dropshipper automatically. This is done ...
0
votes
1answer
762 views

Output JSON object with woocommerce products

My client needs to produce a Json file with all the latest products, so it can sync with a external site, whenever there are changes in the data -products- it is updated immediately. They requested ...
1
vote
0answers
54 views

How to split links generated into an xml sitemap to avoid exceeding 30 sec maximum execution time?

So I am trying to push these kind of URLs into a sitemap www.example.com/used-cars/location/new-york/model/audi & www.example.com/used-cars/model/bmw This code seems to do exactly that: ` ...
1
vote
2answers
689 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 ...
2
votes
1answer
118 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
0answers
48 views

WP All Import: Feeds of Feeds [closed]

I’m trying to import a knowledge base into a WP install using WP All Import (I have the pro edition). I’ve used the plugin many times before for ‘flat’ xml files where the info is all contained within ...
0
votes
1answer
25 views

How can I get post text from all posts on a Wordpress news site?

I'm a Digital Operations manager for a college news site, and as part of a new project, I'm trying to generate a corpus of all article content we've released. Approaches I've considered thus far: ...
3
votes
2answers
5k 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”: ...
0
votes
0answers
75 views

How to replace a specific html tag in bulk?

I imported a Blogger XML to WordPress, but Blogger converts the tag <!--more--> into <a name='more'></a>, which is something that WordPress doesn't recognize as it should (I lost the ...
0
votes
1answer
801 views

XML file import for attachments or featured images

I'm hoping there is a direct tag for bringing in featured images/attachments with XML post imports, using an external url? Explanation: I am successfully importing a large number of custom posts by ...
2
votes
2answers
272 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 ...
0
votes
1answer
102 views

Is there an XML Web Service that can get posts, categories and other data from the site?

I know that there is a JSON API Plugin and I think that is what I want with the major exception being that it only outputs JSON and there is no configuration that I can see for outputting XML. Is ...
0
votes
2answers
467 views

Dynamically Create Posts Via XML File

I'm new to wordpress/php and I'm trying to create new posts dynamically through a xml file. The xml I'm working with is this one. The file get updated periodically during the day in a FILO fashion (...
0
votes
2answers
98 views

Add valid XHTML closing img tags to Wordpress galleries

Default WordPress galleries img tags close like <img> which is invalid XHTML. The lazyload XT plugin that I'm using targets valid XHTML img tags which means ending should be: <img src="http:/...
0
votes
1answer
34 views

Importing feeds with PHP

I would like to create a customizable code to import some Feed RSS in Wordpress, using wp-cron. I'm trying this but it does show nothing, can someone explain me why? <? php add_action('...
0
votes
1answer
23 views

Moving WordPress to a different directory - update XML Post File?

OK, I am moving our WordPress install to the root of the domain. I've tested on a cloned version of the site that if I export and import the posts then they all load correctly - except for the fact ...
3
votes
0answers
25 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: ...
0
votes
1answer
426 views

Importing XML to Wordpress, permalink problem

I just don´t know what I am doing wrong. I have the latest xampp, also wordpress 4.5.2, and I make an XML file, with all the posts that I need to import, but when I import it the permalink is cutoff ...
2
votes
0answers
451 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
1answer
3k 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
1k views

WP-all-import problems with large input file [closed]

I'm running development environment xampp (windows) and production server. On the DEV virtual machine, everything works correctly, PROD server doesn't work: wp-all-import plugin large XML feed http:...
0
votes
1answer
205 views

RSS/Atom feeds invalid, “Mismatched tag” errors

We are having trouble getting our feeds to validate on either Feed Validator or the W3C Feed Validation Service. When I enter any of the common URI's: [siteurl]/feed [siteurl]/feed/atom [siteurl]/...
1
vote
0answers
315 views

Visual/Text Editor displays blank pages in WP-Admin- but HTML on client side displays correctly

Theme: Hemingway, Twenty-Sixteen Host: Bluehost Browser(s): Safari, Chrome OS: OSX El Capitan 10.10.5 (14F1605) Website When I try to "Edit Page" visual editor screen is blank, in both Text and ...
-3
votes
1answer
371 views

xml generator script wordpress [closed]

What i want is to have a script that would create an xml output file. just to give you a brief overview of what i am planning to achieve. I want me or some user to enter some text in a custom form ...