Questions tagged [xml]

The tag has no usage guidance.

59 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
37 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: ...
3
votes
0answers
1k 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 ...
3
votes
1answer
763 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 ...
1
vote
0answers
33 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 ...
1
vote
1answer
123 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 ...
1
vote
0answers
45 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
0answers
229 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 ...
1
vote
1answer
484 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 ...
1
vote
0answers
87 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
0answers
468 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 ...
1
vote
0answers
3k views

How can I bulk update all posts without making changes?

I'm setting up a site which uses a custom vehicle auction theme. Using the WP All Import plugin, an XML file loads vehicle details into the theme, these are a type of post. In order for vehicles to ...
1
vote
0answers
392 views

Display image from an external rss feed on wordpress without plugins

I am trying to add an external RSS Feed to my wordpress theme. Displaying the feed content and title was a success. But I don't see any option to display the image from the external feed. I tried ...
1
vote
0answers
368 views

A question on WXR

I have a quick question around the import file for WordPress (WXR) as I'm really new to WordPress, a couple of things don't make sense. In most examples I found, the first part of the /channel node ...
1
vote
0answers
265 views

Export xml use/import images from theme directory

Is it possible to create demo.xml for a theme that when imported into fresh theme installation will use/import images from theme directory folder (e.g. theme/images/demo) rather than import media from ...
1
vote
0answers
198 views

Query posts and return XML

Here is the short and sweet of what I am hoping to do. I would like to have a way for external websites to query mine using a game title and they would get an XML back that contains the text of the ...
1
vote
0answers
535 views

Problems with Wordpress Import

I have a VPS hosting account with Web Fusion and am migrating one of my Wordpress sites to it. The Wordpress export file is about 29 MB. At first i encountered an Internal Server Error after ...
0
votes
0answers
11 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
0answers
10 views

Import XML file into database but escape some of the XML tags

I'm able to successfully import XML files into a table in my database with the following query: LOAD XML INFILE "myFileName.xml" INTO TABLE t_orig2 ROWS IDENTIFIED BY '<verse>'; ...
0
votes
0answers
20 views

Custom feed (rss-gmerchant.php) for custom post type (product)

In a nut-shell, I'm trying to get a custom RSS feed for the post type 'product', so I can modify it and turn it into a Google merchant feed. 1. Using a separate (rss-gmerchant.php) file to generate ...
0
votes
0answers
11 views

Need to display custom post type data in xml format in domainname.com/example.xml url

I need to display custom post type all data as XML format in domain.com/example.xml url Please guide me that how can I do it. It will be always updated details. Site is in wordpress.
0
votes
1answer
13 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
2answers
29 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
0answers
26 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 ...
0
votes
0answers
14 views

Convert single and double quotes, dashes, etc. to correct character encoding in WXR import file?

I've exported a WordPress export file for import into a new WordPress site. However, I get the error "This does not appear to be a WXR file, missing/invalid WXR version number" After some ...
0
votes
0answers
12 views

affixing a parent category when importing xml into woocommerce

I configure import according to this manual.Categories are imported without hierarchy, all at the same level. What needs to be corrected in the code so that the hierarchy is taken into account when ...
0
votes
0answers
11 views

Field with xml data on edit post

I have an xml file, where I have already process the data and I have let's say an array with the values that I am going to need. What I want is somehow to create a button (or a field) on the edit post ...
0
votes
0answers
23 views

how can I get metadata from .txt & xml files received via URL

I am in no means developper so apologies if this is a dumb question :) I need to get and display metadata in 2 different ways for a radio station website: From a .txt or .xml (I have both) file I ...
0
votes
0answers
21 views

Trying to get a $_POST ACF meta value to save to xml file using simpleXML

I am working with the publish_posttype action to get data of post as it's getting published. I pushing these values to an xml file using simpleXML. I can get things like post title easily since that ...
0
votes
2answers
161 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/...
0
votes
1answer
61 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
155 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
1answer
29 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
226 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
1answer
503 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
0answers
498 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
35 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
0answers
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 ...
0
votes
1answer
35 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: ...
0
votes
0answers
188 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
2answers
1k 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
1answer
74 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
231 views

Bulk insert posts is really slow and skips entries

I'm writing a plugin to parse a bunch of XML files with the NewsML standard and insert them into the database as custom post type. Everything works fine and as intended, but especially at the first ...
0
votes
0answers
380 views

Import xml feed

I can import and RSS feed in Wordpress with something like this. <ul><?php if(function_exists('fetch_feed')) { include_once(ABSPATH . WPINC . '/feed.php'); ...
0
votes
1answer
239 views

WordPress removes namespace part from my tags in RSS feed

I'm making a custom RSS feed, which outputs tags in particular namespaces. When I output <pugpig:summary> for example, the pugpig part disappears and I'm left with <summary> in the output ...
0
votes
0answers
103 views

Prevent site down when importing data from large XML file

Scenario : I am using WordPress multisite. I have created plugin which imports sample data from theme folder (I have pattern given in plugin which fetches file) And then I have defined default theme ...
0
votes
1answer
39 views

Posting XML in comment section

Users post XML data in my comments section frequently due to the nature of my content, but due to the way the comments work, the elements are consumed and do not appear properly. In fact, when I look ...
0
votes
0answers
401 views

How to replace all images within exported xml files to demo.jpg?

I'm going to create a demo data by exporting a site (Wordpress Export Tool) and get an xml file. I don't want my users who import my xml and get all actual images of the site. Is it possible (in not ...
0
votes
1answer
74 views

Convert javascript running xml files to wordpress platform

I have a website I want to convert over to the wordpress platform. On the existing site I use some javascript to pull in images and text from xml files. Can I still get this to work in a wordpress ...
0
votes
1answer
96 views

Adapting a php array to WordPress

The guys over at the other Stackoverflow said I should post this here. I've been reading and tweaking code for three days and can't figure this out, because I'm new to php. The developer that wrote ...
0
votes
0answers
64 views

What method should I use to store my plugin data (multi level menus with options on each item)

So the background on my plugin - it generates taxonomy/term filters to give you a filtering system similar to what you'd see on NewEgg where you filter your results by category/manufacturer/other ...