Questions tagged [xml]

The tag has no usage guidance.

55 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
30 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: ...
2
votes
0answers
736 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 ...
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 ...
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
1answer
348 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
78 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
417 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
1answer
661 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
2k 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
378 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
358 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
262 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
196 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
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 ...
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
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 ...
0
votes
1answer
54 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
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
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
29 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
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 ...
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
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
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
0answers
1k 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
29 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
99 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
903 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
46 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
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
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
1answer
217 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
352 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
230 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
101 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
37 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
379 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
72 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
93 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
63 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 ...
0
votes
1answer
75 views

Moving 2 wordpress sites to one

I am working on 2 different wordpress blogs into one new domain! I used the Tools->Export to get the xml file and also chose the option to include files and attachments as I wanted to move all the ...
0
votes
1answer
48 views

How to make an xml file (just the xml file) available at a specific url?

I'm trying to include an xml file in my WP site where you could go to a url, much like this one: www.example.com/somepage/anotherpage/thefile.xml and view "thefile.xml" - no header, no footer, just ...
0
votes
1answer
42 views

When importing posts to a new site if XML file has postmeta not setup on new server what happens?

I have a few XML exports from one domain, and all the posts have postmeta which no longer exists on the new domain. An example is <wp:post_parent>70</wp:post_parent> The new domain has no ...
0
votes
1answer
152 views

How to create import option for xml

I want to put in theme admin page an option for demo content XML. This option should offer the possibility to switch between Demo Content and Default WordPress installation content. If I select demo,...