Quantcast
Channel: Active questions tagged xml - WordPress Development Stack Exchange
Browsing latest articles
Browse All 32 View Live

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...

View Article



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 the...

View Article

Image may be NSFW.
Clik here to view.

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 ?> and...

View Article

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...

View Article

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 */add_action(...

View Article


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...

View Article

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 images...

View Article

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...

View Article


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.

View Article


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('init',...

View Article

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 panelImporting parent posts is straightforward, by defining the respective...

View Article

How do you code a featured image into an XML as a jpg link, instead of using...

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>...

View Article

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...

View Article


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?

View Article

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...

View Article


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...

View Article

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...

View Article


Image may be NSFW.
Clik here to view.

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...

View Article

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:{"info":...

View Article

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...

View Article

When importing - failed to import: Invalid post type, feedback

I am attempting to import a site using XML generated by WordPress.comAll the posts and media seem to import, but the comments fail with errorsFailed to import “Sarah Toon - 2015-10-10 08:29:30”:...

View Article


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...

View Article


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 =...

View Article

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 (new...

View Article

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 :<?phpfunction get_workhours($ID){ $sql =...

View Article


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...

View Article

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...

View Article

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...

View Article

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...

View Article



Disabling options for xml feeds

I would like to disable xml feeds on my site and "disable xml feeds" plugin pretty much does the job. But I would like to keep main feed and category feeds available. The best would be to keep only...

View Article
Browsing latest articles
Browse All 32 View Live




Latest Images