Quantcast
Browsing all 3201 articles
Browse latest View live

Mark Wilkinson on "Passing HTML, Inside XML as Post Content with wp_insert_post"

I am using an XML file which contains the data for adding a post in WordPress. An example of my file is below: <?xml version="1.0" encoding="UTF-8"?> <job>...

View Article


John Blackbourn on "Passing HTML, Inside XML as Post Content with...

You should do a var_dump( $wpbb_params ) to see what exactly you've got. As you mention, $wpbb_params['Details'] is probably an array, not a string, due to the presence of its child elements. Rather...

View Article


Mark Wilkinson on "Passing HTML, Inside XML as Post Content with wp_insert_post"

Thanks for the suggestion John - much appreciated. I have now changed to use in the way you have suggested. I no longer get errors, however it adds no post content. Any further ideas?

View Article

John Blackbourn on "Passing HTML, Inside XML as Post Content with...

Sorry, you might have to use the asXML() method to get the text, rather than just (string), because it contains child elements. My bad. $xml = simplexml_load_string( $wpbb_xml_content ); $content =...

View Article

John Blackbourn on "Passing HTML, Inside XML as Post Content with...

Hmm, that might include the <Details> and </Details> tag in the result. I hate XML.

View Article


Mark Wilkinson on "Passing HTML, Inside XML as Post Content with wp_insert_post"

Thanks for your input again John. You are correct in that it included the details XML tag. However I have now managed to get it work with the following: $post_content = $xml->Details->asXML();...

View Article

John Blackbourn on "Passing HTML, Inside XML as Post Content with...

Off the top of my head, you could try this: $post_content = $xml->Details->children()->asXML();

View Article

Mark Wilkinson on "Passing HTML, Inside XML as Post Content with wp_insert_post"

Thanks for that - this worked but only added the first HTML element of $xml->Details as the post content and not the rest.

View Article


John Blackbourn on "Passing HTML, Inside XML as Post Content with...

After a cursory Google it seems that SimpleXML doesn't actually support this natively. The main problem is that the contents of the <Details> node of your XML should actually be wrapped in...

View Article


Mark Wilkinson on "Passing HTML, Inside XML as Post Content with wp_insert_post"

Yes XML is certainly turning out to be a pain. I did try the <![CDATA[ and ]]> thing wrapping the content of the <details> XML tag in that but it did not work giving the same problem. Still...

View Article

niksng on "[Plugin: WordPress SEO by Yoast] Draft posts in Xml sitemap crated...

Hi, I have some posts that were published but after I have drafted them they still show in xml sitemap and google show them as broken links now. What can I do about it. How can I stop them appearing in...

View Article

SupremeA on "Best option for XML data manipulation"

Hello All, I want to receive data from 2 different xml files and then take that data and do some simple math and then have the output go to a new page/post. Is their any plugin that can do that or any...

View Article

jorgeorpinel on "[Plugin: Lightbox Plus Colorbox] XML syntax error on...

"The markup in the document following the root element must be well-formed." on line 3 is shown because there's no parent element to contain <title>,<questions> and <answersets>. Wrap...

View Article


ShawnLunny on "[Plugin: Stealth Login Page] Add parameter to wordpress xmlrpc?"

We have a 3rd party system we use to make new posts on our wordpress install. See: http://codex.wordpress.org/XML-RPC_WordPress_API My question is how can i include the new passphrase with the password...

View Article

emeka_toby on "How to build a HTML5(Native)App that pull feeds(XML/JSON) from...

https://wordpress.org/plugins/json-api/

View Article


Star Verte LLC on "Import attachments without downloading"

Ok, so I have the files and the XML for a WordPress site, and I want to import the data for all attachments, but they don't need to be downloaded (and can't be). However, the data is completely valid...

View Article

jhensley on "[Plugin: WP Content Filter] Content Filter changing links when...

This plugin shows related posts below a post. WP Content Filter is filtering the href url that points to the other posts causing 404's when following the links.

View Article


jhensley on "[Plugin: WP Content Filter] Content Filter changing links when...

In case others encounter similar issues with this or other plugins I found 404 Redirected to automatically redirect and solve this issue. https://wordpress.org/plugins/404-redirected/

View Article

tyeweldon on "[Plugin: WordPress SEO by Yoast] "Fix It" button not working...

I'm having difficulty deciphering what and why this error message remains: The following file(s) is/are blocking your XML sitemaps from working properly:...

View Article

waelhaydar on "[Plugin: WP RSS Multi Importer] Atom.xml"

problem solved with the new update. thanks for the valuable assistance.

View Article
Browsing all 3201 articles
Browse latest View live