Create plugin/function to catch XML-data via Shortcode

If this file is remotely available to you, then you should be using the HTTP API. $response = wp_remote_request( ‘http://xml.prisguide.no/productExport.php?productId=151690’ ,array( ‘ssl_verify’ => true // If the request isn’t working, try it with `false` ) ); You then simply go and catch the response and check if it’s an error: if ( is_wp_error( $response ) … Read more

Feed RSS problem on WordPress, need it for Google News

Your problem is your CDN, Stackpath: I’d guess it’s rejecting the feed validator request based on User-Agent string. If you use curl to request the feed, then it serves back Content-Type: text/html and Stackpath Sorry, you have been blocked. This website is using a security service to protect itself from online attacks. You performed an … Read more

special XML to wordpress posts

turbo csv is a great plugin, i always use it on my projects : You convert your xml to csv (much easier to manage posts after) the plugin converts the csv to a post and you could even populate custom fields

I’m think I’ve found a bug with JetPack 1.7 [closed]

Jetpack support kindly replied: This could be an issue with the After the Deadline module. When you update a post, WordPress makes a call to the service (service.afterthedeadline.com) to spellcheck your content, and it seems an error occurs during the connection. Could you try deactivating the Spelling and Grammar module Disabling it DID fix the … Read more

Embedded Feed Update

I dont no about the plugin, but the default on feed-function of WordPress have a cache, there cache all content for 12 hour and then regenerate the content. You can change this via a small function, like in a plugin or you copy the source to the functions.php of the current active theme; but a … Read more

Xml output not places where i want

Shortcodes must return content and not echo it. See any of the examples in the codex for add_shortcode() So your callback function should probably be: function CheckRemoteService($atts) { extract(shortcode_atts(array( ‘name’ => ‘txt’, ), $atts)); $xml = simplexml_load_file(‘my.xml’); return $xml->sites->$name; } add_shortcode(‘checkmyurl’,’CheckRemoteService’);