Answers.Body: <p>There is currently no native way to achieve this with Feed Me, short of writing your own PHP middle-man script which would parse the HTML, extract just the images, and append it to you XML/JSON.</p>
  
  <p>We do plan on adding hooks later (potentially with examples) for this sort of scenario, as its quite common, but will not be until at least Feed Me 3.1.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-05-04T14:01:31.230Z
Answers.LastActivityDate: 2018-05-04T14:01:31.230Z
Answers.UserDisplayName: crawf
Body: <p>I'm migrating some posts from Wordpress, and the posts on Wordpress have the images within a rich text field. </p>
  
  <p>I need to reference the image separately to the rest of the rich text field - below the image there is usually one or two lines of text.</p>
  
  <p>Is there any way I can either:</p>
  
  <p>a. Reference the image in my Twig separately to the rest of the rich text field, or</p>
  
  <p>b. Somehow split the rich text field so that the image url becomes an asset within Craft.</p>
  
  <p>I'm using Feed Me to import the data into Craft and WP All Export to export the data out of Wordpress.</p>
  
  <p>Thanks!</p>
  
Tags: <templating><assets><richtext><migration><plugin-feedme>
Title: How can I reference images separately within a rich text field?
ThreadText: # How can I reference images separately within a rich text field?
  
  (Asked by: username_0 on 2018-01-23)
  
  I'm migrating some posts from Wordpress, and the posts on Wordpress have the images within a rich text field.
  
  I need to reference the image separately to the rest of the rich text field - below the image there is usually one or two lines of text.
  
  Is there any way I can either:
  
  a. Reference the image in my Twig separately to the rest of the rich text field, or
  
  b. Somehow split the rich text field so that the image url becomes an asset within Craft.
  
  I'm using Feed Me to import the data into Craft and WP All Export to export the data out of Wordpress.
  
  Thanks!
  
  **Tags:** templating, assets, richtext, migration, plugin-feedme
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-05-04. Score: 1
  
  There is currently no native way to achieve this with Feed Me, short of writing your own PHP middle-man script which would parse the HTML, extract just the images, and append it to you XML/JSON.
  
  We do plan on adding hooks later (potentially with examples) for this sort of scenario, as its quite common, but will not be until at least Feed Me 3.1.
  
  
  ---
  
  