title: metabox images outside post (wordpress)
body: <p>i have a little problem while getting images from a post to an external page, ex: i want to use lastest post images inside a slider used as header placed to the homepage (i'm using metabox to insert images inside the post and to the card header) what i'm trying to achieve:</p>
  
  <p><img src="https://i.stack.imgur.com/G17AQ.png" alt="image"></p>
  
  <pre><code>&lt;?php
  $popularpost = new WP_Query(
  array( 'posts_per_page' =&gt; 4, 'post_status' =&gt; 'publish', 'orderby' =&gt; 'publish_date', 'order' =&gt; 'DES')
  );
  
  $titles = array();
  $s_desc = array();
  $image = array();
  while ( $popularpost-&gt;have_posts()) : $popularpost-&gt;the_post();
  
  $titles[] = the_title('', '', FALSE); // set third parameter to FALSE.
  $s_desc[] = short_desc();
  //$image[] = rwmb_meta( 'my_image', array( 'size' =&gt; 'large' ));
  
  endwhile;
  ?&gt;
  
  &lt;div class="blog-masthead"&gt;
    &lt;div class="ct-header ct-header--slider ct-slick-custom-dots" id="home"&gt;
      &lt;div class="ct-slick-homepage" data-arrows="true" data-autoplay="true"&gt;
        &lt;div class="ct-header tablex item" data-background=""&gt;
          &lt;div class="ct-u-display-tablex"&gt;
            &lt;div class="inner"&gt;
              &lt;div class="container"&gt;
                &lt;div class="row"&gt;
                  &lt;div class="col-md-8 col-lg-6 slider-inner"&gt;
                    &lt;h1 class="title animated"&gt;&lt;?php echo $titles[0]; ?&gt;&lt;/h1&gt;
                    &lt;p class="header animated slider-desc"&gt;&lt;?php echo $s_desc[0] ?&gt;&lt;/p&gt;
  </code></pre>