title: Access Post Content with JS
body: <p>I've created a <code>lightbox</code> function which loads over the top when a user clicks on a post link in the archive. The overlay needs to display images and short paragraphs of text in a slideshow style (with next and prev buttons), those fields are created with as <code>Advanced Custom Fields</code> flexible repeater. </p>
  
  <p>I'm using <code>JS</code> to <code>.append()</code> a div to the body and I need to then query the post, by <code>ID</code> I guess, within my js to fetch the first value from that <code>ACF</code> repeater, then second, then third and so on, when the next/prev buttons are hit. I'm thinking that I could perhaps quickly grab an array of those values when the lightbox is loaded and then cycle through them, but am not sure where to start. </p>
  
  <p>What I don't want to do is simply <code>.load()</code> the post, headers and all, into the lightbox, just the images (and short peices of text) one at a time. </p>
  
  <p>Any pointers greatly appreciated. </p>