Questions tagged [xml]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
29 views

wp_get_attachment_url images in wrong order [closed]

I have this bit of code in my xml feed and it's picking up the images in a different order than it is in the WordPress post. https://i.imgur.com/xmetEa6.png Here in the admin area I can drag the ...
0
votes
1answer
63 views

SimpleXML is not working with xml response from external api

I am doing my first steps with WordPress_plugins/PHP and just faced my first wall. Will try to do my best in order to explain the problem, please give me some discount. I am creating a plugin for ...
1
vote
1answer
662 views

Should I store external API data in my WP database or keep it as a transient?

I am in a situation where I need to use data from an API (XML) served by a third party in my WordPress site. The data will be updated on that third party application. Specifically this is data about ...
0
votes
1answer
446 views

How to update post meta with xml data

I am trying to get this to work, but it doesn't. What is wrong? $tutorgeocodesrc = "http://where.yahooapis.com/geocode?location=" . urlencode($tutoraddressfull) . "&appid=..."; $tutorgeocode = ...
0
votes
1answer
578 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 ...
0
votes
2answers
539 views

Create XML sitemap in wordpress

This question has already been asked before, however, I cannot reply to those comments because I am a new user. Therefore, I will post my question here. I am trying to create a XML sitemap for my ...
0
votes
1answer
586 views

Wordpress importer / problem with images

i'm experiencing problem with WordPress importer. If I generate XML within my current wp, and import it to other site it doesn't get images. All links are working fine,all details are there, but ...
0
votes
2answers
904 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
0answers
4 views

widget to xml/json

Newbie's question. have a post on my wordpress site that i need to have a representation of XML/JSON to a NEW url so I can grab data from another website. How do I do that? Any widget that can come ...
1
vote
1answer
72 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 ...
0
votes
1answer
147 views

How do I get data from my database into my Custom Export Field

I am trying to get data from my database to export to a XML or CSV File by using a custom query. This is my function with the query : <?php function get_workhours($ID){ $sql = $wpdb->...
0
votes
1answer
587 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´...
0
votes
1answer
11 views

Create Post Types from a XML url (Real Estate website)

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 ...
0
votes
1answer
1k views

XML export posts from one single day

How to export all posts from one single day. I've tried Tools > Export > Post. But problem is that there's only monthly backup, not date-wise as in "only 5th July 2015". How can I achieve this?
0
votes
0answers
30 views

How can i solve elementor & polylang plugin problem?

After install polylang plugin my xml file not working, I have installed some plugin,here are the list 1.Max Mega menu 2.Algori PDF Viewer Lite 3.Elementor 4.MetaSlider 5.Polylang 6.Polylang Connect ...
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 ...
0
votes
1answer
55 views

Extract XML/JSON element from Zillow API response and populate into Gravity Forms field

Given this stack: WordPress 5.3 GravityForms 2.4.15.6 (paid: common, right?) Forms: 3rd-Party Integration (free: Link to WordPress plugin page) Forms: 3rd-Party Inject Results (free: Link to ...
0
votes
2answers
160 views

Create a page by importing data from an XML file ( On clicking a button inside admin options page)

I have used this method to create a custom post page but I want the content to be the imported XML file content to be the content of this file. https://stackoverflow.com/a/32314726/3697484 I have the ...
1
vote
2answers
8k 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> <...
0
votes
0answers
33 views

WP All Import: Import nested custom taxonomies

I have an xml which contains 3 level product categories like this: <family code="04" title-el="Εξοπλισμός Service" title-en="Service Equipment"> <groups> <group code="...
0
votes
0answers
4 views

Importing XML data wp_terms WooCommerce conflict

On my Localhost installation I have 3 menus assigned to the specific term ID's. Example: Footer Menu (solutions) - (ID 24) Footer Menu (resources) - (ID 23) Main Menu - (ID 25) After exporting XML ...
0
votes
1answer
22 views

How to assign name the WordPress export.xml file

I maintain a bunch of different WordPress sites, and I have noticed a wide variety of default filenames for the XML content export file (Tools-Export-all content). Some of them even use a PHP ...
0
votes
1answer
35 views

WordPress sitemap “Extra content at the end of the document”

I have used WordPress with the plugin to generate a sitemap on request (in my case it was "All In One SEO Pack"). In the beginning, everything worked fine, but at some moment I found that the sitemap ...
0
votes
0answers
17 views

How to ask WordPress to generate XHTML?

By default, WordPress does not close all paragraphs, i.e. one can have paragraphs that start with <p> but with no closing </p>. The code editor is useless, because paragraph tags do not ...
0
votes
1answer
24 views

import svg-files from wxr - (upload works, import not)

Upload works - Import from wxr not We're updating several sites with a new page, imported from a wxr file. Page, included form, jpg, png - all work fine but SVG not so much. I've checked scripts ...
0
votes
1answer
30 views

Import Instagram post as Wordpress post

I've been searching a lot but haven't found one very simple thing: how to import a post created on Instagram and turn it into a Wordpress post, that is, copy one Instagram post (text + photo) and ...
0
votes
0answers
36 views

how to create a custom xml export for custom post types

I can't find any typical 'wordpress' way of using wordpress' XML exporter (that it uses to export xml for posts and custom post types etc) to specifically export an XML structure custom post types ...
0
votes
0answers
15 views

Woocommerce Variations Sale Price - RegularPrice Xml export

Hi I can't adjust the sale price and the discount sale price I'm waiting for your help on this topic thanks https://i.stack.imgur.com/rgYk1.png
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/...
0
votes
2answers
386 views

Why does SVG upload in Media Library fail if the file does not have an XML tag at the beginning?

I have enabled SVG uploads using this code: add_filter('upload_mimes', function($mimes) { $mimes['svg'] = 'image/svg+xml'; return $mimes; }); However, uploads of SVG files that start with the &...
0
votes
0answers
44 views

Have custom post type posts show under regular posts in sitemap (Yoast)

I have a custom post type called FAQs, and I'm using Yoast SEO to generate a sitemap. The sitemap gets generated like it should, but it creates a completely separate sitemap for the FAQ post type, so ...
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
3answers
191 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 ...
0
votes
0answers
79 views

WP All Import manual Cron

I am having problem to set up Cron to import stock. In Plugin WP-All Import i have two urls. One which starts import, another one is checking process and if it's stuck it kicks it back on. I'm runing ...
0
votes
1answer
51 views

Wodpress XML Import hooks

Having the task to merge posts from given remote sites in one site under a given category how do I hook the import plugin to save the posts for a given category: Given example: receiver site has ...
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 ){ ...
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 = ''....
-1
votes
1answer
202 views

Feed RSS problem on Wordpress, need it for Google News

I need my feed to work, but i have problem with feed validator, that send me out this message https://www.rnbjunk.com/feed/ It looks like this is a web page, not a feed. I looked for a feed ...
0
votes
1answer
228 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
2answers
82 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 ...
1
vote
1answer
351 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
283 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
27 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
599 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
1answer
3k 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 ...
0
votes
1answer
1k 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 ...
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-...
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 ...
-1
votes
1answer
397 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 ...
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 ...