Questions tagged [xml]
The xml tag has no summary.
170 questions
1
vote
1
answer
137
views
How do I return XML to an API post request
I'm working on a plugin that deals with Twilio. Twilio makes a post request to the plugin and I have to respond with Twiml which is really just xml. If I try sending it through like this
$wp_response =...
1
vote
0
answers
103
views
Wordpress Custom API GET request from External App with XML Parameter
I am new to WordPress API's and API's in general. I have an external app that is sending a GET request to my WordPress site with an XML string as the only parameter. I created a custom API that ...
0
votes
1
answer
212
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 ...
1
vote
1
answer
540
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 ...
0
votes
0
answers
160
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 ...
0
votes
0
answers
120
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 ...
0
votes
0
answers
99
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 ...
0
votes
1
answer
836
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>
&...
1
vote
1
answer
130
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:
{
"...
0
votes
1
answer
408
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 ...
0
votes
0
answers
388
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('...
0
votes
0
answers
286
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 ...
0
votes
1
answer
55
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....
0
votes
2
answers
740
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
*/
...
0
votes
0
answers
110
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 ...