Importing Your Archives to WordPress

The Our Hometown team is here to help with your archive export & transfer to our system.

Our Hometown’s platform requires articles to be sent over as a JSON file or in the NITF format. Both files should be structured to match the examples below.  JSON is the recommended format when possible.

(News Industry Text Format – you can learn more about the standard here )

This ensures accurate importation of all your data to the correct fields, as well as image importation & placement.

Please copy and paste the following text in an email or ticket to your current provider:

We would like to request a download of our HTML archives. Our new provider is able to accept imports in either NITF or JSON format. JSON is the recommended format when possible.

JSON:

Below is a sample JSON file that includes the required stucture and items for import:

[{
    “title”: “My <b>first<\/b> article”,
    “author”: “John Doe”,
    “publish_date”: “2022-04-06 11:44:01”,
    “subhead”: [“This is a subhead”, “This is another subhead”],
    “edition”: “2022-04-06”,
    “body”: “<div class=\”body\”>This is the body of the article<\/div>”,
    “teaser”: “<div class=\”teaser\”>This is the teaser of the article<\/div> <img src=\”http:\/\/www.example.com\/image.jpg\” \/><img src=\”http:\/\/www.example.com\/image2.jpg\” \/>”,
    “Categories”: {
        “Parent Category 1”: [“Child Category 1”, “Child Category 2”],
        “Parent Category No Children”: []
    },
    “tags”: [“tag1”, “tag2”, “tag3”],
    “featured_image”:  {“caption”: “Photo caption 1″,”url”:”http:\/\/www.example.com\/image.jpg”},
    “body_images”: [{“caption”: “Photo caption 1″,”url”:”http:\/\/www.example.com\/image.jpg”}, {“caption”: “Photo caption 2″,”url”:”http:\/\/www.example.com\/image2.jpg”}]
}, {
    “title”: “My <b>Second<\/b> article”,
    “author”: “John Doe”,
    “publish_date”: “2022-04-06 11:44:01”,
    “subhead”: [“This is a subhead”, “This is another subhead”],
    “edition”: “2022-04-06”,
    “body”: “<div class=\”body\”>This is the body of the second article<\/div>”,
    “teaser”: “<div class=\”teaser\”>This is the teaser of the article<\/div> <img src=\”http:\/\/www.example.com\/image.jpg\” \/><img src=\”http:\/\/www.example.com\/image2.jpg\” \/>”,
    “Categories”: {
        “Parent Category 2”: [“Child Category 3”, “Child Category 4”]
    },
    “tags”: [“tag1”, “tag2”, “tag3”],
    “featured_image”:  {“caption”: “Photo caption 1″,”url”:”http:\/\/www.example.com\/image.jpg”},
    “body_images”:[{“caption”: “Photo caption 1″,”url”:”http:\/\/www.example.com\/image.jpg”}, {“caption”: “Photo caption 2″,”url”:”http:\/\/www.example.com\/image2.jpg”}]
}]

NITF (Newspaper Industry Text Format):

Below is a sample of the tags required by NITF. In NITF formatting, each story is required to be in a separate file, which is then stored in a separate folder for each edition that also contains the story’s images.  This means all stories & pictures for one edition, go into one folder, labelled “YYYY-MM-DD”.

<?xml version=”1.0″ encoding=”UTF-8″?>
<nitf version=”-//IPTC//DTD NITF 3.3//EN” xmlns:extra=”urn:extra-functions”>
<head>
<title><![CDATA[Quick action by firefighters contains fire at Colasanti’s Market]]></title>
<docdata>
<doc-id id-string=”27676″ />
<date.issue norm=”2017-06-14″ />
<date.release norm=”2017-06-14″ />
</docdata>
<pubdata type=”print” date.publication=”2017-06-14″ position.section=”Front Page” />
</head>
<body>
<body.head>
<hedline>
<hl1><![CDATA[Headline Goes Here]]></hl1>
<hl2><![CDATA[Subhead Goes Here]]></hl2>
<hl2><![CDATA[Subhead n Goes Here]]></hl2>
</hedline>
<byline><![CDATA[Byline 1 Goes Here]]></byline>
<byline><![CDATA[Byline 2 Goes Here]]></byline>
<byline><![CDATA[Byline n Goes Here]]></byline>
</body.head>
<body.content>
<block>
<![CDATA[Article Body Here]]>
</block>
<block>
<media media-type=”image”>
<media-reference source=”1p1.jpg” />
<media-caption><![CDATA[Caption for Photo 1 Goes Here]]></media-caption>
</media>
<media media-type=”image”>
<media-reference source=”1p2.jpg” />
<media-caption><![CDATA[Caption for Photo 2 Goes Here]]></media-caption>
</media>
</block>
</body.content>
</body>
</nitf>