Questions tagged [xml]

The tag has no usage guidance.

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

Read data from external source. XML vs REST API

I have a WordPress site and I should read data from an external source to populate parts of the various pages. I can choose whether to have the external data in an xml or via rest api. The xml will ...
Stefano Vet's user avatar
0 votes
0 answers
12 views

Update HTML text automatically from file

I run a Wordpress website for a restaurant, where I manually get to update some of the text (the week's menu) which I receive from the chef by mail in a Word file every monday morning. I have been ...
Bob's user avatar
  • 1
1 vote
1 answer
177 views

Disable XML-RPC via snippet

I am testing disabling XML-RPC on WP 6.2.2 via the following snippet: add_filter('xmlrpc_enabled', '__return_false'); But that isn't working. I can still access xmlrpc.php fine. I tried to add it in ...
Xhuljano Llapushi's user avatar
0 votes
0 answers
103 views

XML WP_Query problem in PHP 8.0 and 8.1

I have a strange problem. In PHP 7.4 my script for generating XML for other comparison site worked well, but after upgrading PHP to 8.0 it doesn't work anymore. In sandbox I got these errors: Fatal ...
Borut's user avatar
  • 1
0 votes
0 answers
58 views

Export Posts Without Categories In An XML File

I have an xml file with posts, authors, images, and other content that I am importing successfully into a new site, but I would like to remove all categories from posts and make them uncategorized at ...
Johnathan's user avatar
0 votes
0 answers
61 views

Export post data with xml to other site using php soap

At one non-wordpress site, I have to show dynamic posts (depends on chosen result), it`s thumbnail, header and short description. Before, I have to fetch these data from other wordpress site. Can I do ...
FrontLand's user avatar
0 votes
1 answer
452 views

How do you code a featured image into an XML as a jpg link, instead of using a data-id number?

All I want to do is get Wordpress's featured image XML code to use a jpeg link as the meta_value, instead of the image gallery data-id number. Basically change this code: <wp:postmeta> &...
fhonics's user avatar
1 vote
1 answer
66 views

Generate/save JSON or XML file from JSON script

I have a JSON script which at first Search for jobs with a specific attribute and then afterwards Get the job details. For now the script is like this and is saved as a Postman collection: { "...
user140333's user avatar
0 votes
1 answer
306 views

How to import nested categories from XML file?

We're importing an eXtended RSS file generated by WordPress thru the native Importer: Tools: Import in the WordPress admin panel Importing parent posts is straightforward, by defining the respective ...
user215574's user avatar
0 votes
0 answers
272 views

WordPress create custom XML RSS feed template

I am trying to create a custom XML RSS feed. However, my code is not quite working as expected. Here is what I have done: In functions.php I have created the feed called "top": add_action('...
TurboTobias's user avatar
0 votes
0 answers
196 views

Wordpress xml import too slow

I'm trying to import posts and media with xml but is really slow, because there are 160000 posts and 160000 media. Further many posts are duplicated (same title, different categories and obviously ...
sangkavr's user avatar
0 votes
1 answer
20 views

Unlimited false pages showing in Sitemap?

I don’t know since when it started but today, I looked at it and it shows more than 90k pages are indexed on google in search console when my site has only 90 posts and some pages. https://priceunder....
Frank Smith's user avatar
0 votes
2 answers
655 views

wp_insert_post from XML feed only inserting first post

My aim is to import all XML files from a folder inside the WordPress installation (/data/*.xml) To achieve this, I added action in functions.php: /** * Show 'insert posts' button on backend */ ...
Pbalazs89's user avatar
  • 115
0 votes
0 answers
79 views

XML FOLDER - wp_insert_post - how to assign XML variables to post

I'm trying to repurpose a code that worked for CSV files to do the same for XML-> That is import all files in the folder and create Wordpress custom posts(cikkek). So, I managed to parse the XML ...
Pbalazs89's user avatar
  • 115
0 votes
1 answer
328 views

Rss error in first line of xml : not well-formed (invalid token)

I'm having a problem with my rss feed. Validator.w3.org is not accepting it, saying not well-formed (invalid token) on line 1. It seems that the name of the website appearing between <?xml ?> ...
jDelforge's user avatar
0 votes
1 answer
712 views

Request failed due to an error: (http_request_fail

I uploaded the XML file to get back up information such as posts, pages, and media files. either media files, everything came. but for the media files, WordPress gives an error.as a note, the media ...
ahmet kaya's user avatar
1 vote
0 answers
97 views

Features in Houzez are not loading in Backend from API

i'm asking here because i have been trying for days to make it work. Basically Im trying to pass XML data from file to Database of WordPress, but i have problem with this piece of XML where i cannot ...
HomerO's user avatar
  • 21
0 votes
2 answers
523 views

Force a 403 response to xml file in Wordpress

I'm looking to force a 403 access denied response for an xml file in a directory outside of the default Wordpress install. The url I'm trying to force the 403 response on looks like this mydomain.com/...
brandozz's user avatar
  • 812
0 votes
1 answer
92 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.stack.imgur.com/E89eg.png Here in the admin area I can drag ...
AionPhirefly's user avatar
0 votes
1 answer
3k 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 ...
Petru's user avatar
  • 3
1 vote
1 answer
2k 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 ...
Marc Murray's user avatar
0 votes
1 answer
209 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 ...
vts's user avatar
  • 13
1 vote
1 answer
334 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 ...
vts's user avatar
  • 13
0 votes
1 answer
273 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 ...
KillerDesigner's user avatar
0 votes
2 answers
4k 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 ...
user avatar
0 votes
1 answer
100 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 ...
user3827186's user avatar
0 votes
1 answer
880 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 ...
P. Dmitry's user avatar
  • 101
0 votes
1 answer
94 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 ...
Leif S.'s user avatar
  • 23
1 vote
3 answers
1k 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 ...
Rogério Dec's user avatar
3 votes
2 answers
3k 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 &...
Theo d'Or's user avatar
  • 168
1 vote
0 answers
68 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 ...
henry puttick 's user avatar
1 vote
3 answers
842 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 ...
click here's user avatar
3 votes
1 answer
885 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 ...
David Karabin's user avatar
0 votes
1 answer
343 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 ...
fefe's user avatar
  • 874
1 vote
2 answers
410 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 ){ ...
user5447339's user avatar
0 votes
1 answer
793 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->...
TerribleADC's user avatar
-1 votes
1 answer
527 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 ...
Fabian Dietiker's user avatar
0 votes
1 answer
1k 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 ...
dado's user avatar
  • 119
0 votes
2 answers
1k 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 ...
Lujix's user avatar
  • 3
0 votes
1 answer
1k 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´...
Wagner's user avatar
  • 3
1 vote
1 answer
544 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 ...
Mourin Bably's user avatar
0 votes
0 answers
762 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 ...
Robert Andrews's user avatar
0 votes
0 answers
87 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(...
Adel N Rhmani's user avatar
0 votes
1 answer
2k 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
Pratik Patel's user avatar
  • 1,087
0 votes
1 answer
2k 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 ...
zqhmagic's user avatar
2 votes
1 answer
136 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-...
D.Sc.'s user avatar
  • 21
-1 votes
1 answer
835 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 ...
user3149814's user avatar
0 votes
1 answer
412 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 ...
user868386's user avatar
2 votes
1 answer
577 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() ...
Owaiz Yusufi's user avatar
0 votes
0 answers
2k 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 ...
Owaiz Yusufi's user avatar