• Resolved Hal Atkins

    (@hal-atkins)


    Thanks for the hard work on this plugin!

    Here’s the difficulty we are experiencing. When importing HTML, we are trying to have a <div> import into a custom field. The problem is that when the import tool sees a <p> tag within that div, it stops importing into that custom field right there.

    Can there be nested HTML tags within a DIV, and that entire DIV still be imported into the custom field?

    http://wordpress.org/plugins/import-html-pages/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Stephanie Leary

    (@sillybean)

    There shouldn’t be a problem with nested tags. Can you post the URL of a sample page, contact me (http://stephanieleary.com/about/contact/ — you may ignore the warning) so you can send an attachment? And what settings are you using for the custom field?

    The ACF fields are set to “Convert HTML into tags”. I’ll post in example snippet of code from one of our HTML files – the relevant divs that I utilizing to import content into the custom fields:

    <div id="ehp-authors">
    <p class="authors">Seung-Hyun Cho,<sup>1</sup><sup>,</sup><sup>2</sup><sup>,</sup><sup>3</sup> Haiyan Tong,<sup>1</sup> John K. McGee,<sup>1</sup> Richard W. Baldauf,<sup>2</sup><sup>,</sup><sup>4</sup> Q. Todd Krantz,<sup>1</sup> M. Ian Gilmour<sup>1</sup></p>
    </div>

    A second div:

    <div id="ehp-abstract">
    
    <h3>Background</h3>
    
             <p class="abstract">Epidemiologic studies have reported an association between proximity to highway traffic and increased cardiopulmonary illnesses.</p>
    
             <h3>Objectives</h3>
    
             <p class="abstract">We investigated the effect of size-fractionated particulate matter (PM), obtained at different distances from a highway, on acute cardiopulmonary toxicity in mice.</p>
    
             <h3>Methods</h3>
    
             <p class="abstract">We collected PM for 2 weeks in July–August 2006 using a three-stage (ultrafine, < 0.1 μm; fine, 0.1–2.5 μm; coarse, 2.5–10 μm) high-volume impactor at distances of 20 m [near road (NR)] and 275 m [far road (FR)] from an interstate highway in Raleigh, North Carolina. Samples were extracted in methanol, dried, diluted in saline, and then analyzed for chemical constituents. Female CD-1 mice received either 25 or 100 μg of each size fraction via oropharyngeal aspiration. At 4 and 18 hr postexposure, mice were assessed for pulmonary responsiveness to inhaled methacholine, biomarkers of lung injury and inflammation; <em>ex vivo</em> cardiac pathophysiology was assessed at 18 hr only.
             </p>
    
             <h3>Results</h3>
    
             <p class="abstract">Overall chemical composition between NR and FR PM was similar, although NR samples comprised larger amounts of PM, endotoxin, and certain metals than did the FR samples. Each PM size fraction showed differences in ratios of major chemical classes. Both NR and FR coarse PM produced significant pulmonary inflammation irrespective of distance, whereas both NR and FR ultrafine PM induced cardiac ischemia–reperfusion injury.</p>
    
             <h3>Conclusions</h3>
    
             <p class="abstract">On a comparative mass basis, the coarse and ultrafine PM affected the lung and heart, respectively. We observed no significant differences in the overall toxicity end points and chemical makeup between the NR and FR PM. The results suggest that PM of different size-specific chemistry might be associated with different toxicologic mechanisms in cardiac and pulmonary tissues.</p>
    
    </div>

    And a third:

    <div id="ehp-citation"> <p class="cit"><em>Environ Health Perspect</em> 117:1682—1689 (2009). http://dx.doi.org/10.1289/ehp.0900730
             </p></div>
    Plugin Author Stephanie Leary

    (@sillybean)

    Resolved via email. Right now, the plugin does strip HTML from custom fields. The next release will have an option (yet another one, ugh) to preserve HTML.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Difficulty importing into custom fields’ is closed to new replies.