JsDataTable is designed to present (existing) data. This data will be gatherd from the wordpress posts. Of course you can type in data into each post. But if you just want to use your website as a visual fronted to present data from another source, you can transfer this foreign data into wordpress. That could be a local file on your harddisk or another remote server on the internet like an OpenData server. The foreign data source could cover the CSV-format, JSON-format or XML-format when you apply the well-known plugin “WP All Import” (pro version). It’s a great tool and highly recommended by the author to assign any data to wordpress.

wp-all-import-logo

Some selected plugin features:
  • Easy mappings (assign source fieldnames to your fields in the wordpress website)
    • Visual drag & drop the fieldnames from CSV, JSON, XML onto any other wordpress fieldname
    • Put data into regular wordpress post fields / Your can also put the data into wordpress custom post fields
    • Save the configuration settings to tempates to reuse them later again
  • The plugin can import assigned categories and tags from the source
  • The datasource could be an URL or a local file on a harddisk
  • Cronjobs, if you want to re-run permanently same imports
  • New-, Update- and Delete-operations focused on former imported wordpress records
    • This is useful if you need to run persistently imports
You can import HTML-Code from a foreign source

While importing data from a foreign source, you can also import some HTML-code. Therefore prepare your CSV, JSON or XML. Just be sure to apply the regular known CDATA-notation, to lodge the code inside the importfile:

Example 1, Importfile (XML format) without CDATA:

<YourFieldname1>This is your title</YourFieldname1>
<YourFieldname2>This ist a regular text without any HTML-Markup.</YourFieldname2>

Example 2, Importfile (XML format) with CDATA notation. The green colored parts should belong to the import content:

<YourFieldname1>This is your title</YourFieldname1>
<YourFieldname2><![CDATA[<strong>Example Example This is a text including some HTML-Markup Example Example</strong><p>Example Exampe Examle &quot;Another HTML-Markup here&quot; Example Example.</p>]]></YourFieldname2>