title: Wordpress, retrieving post value
body: <p>I need to add few static values like how we do in property files in java. </p>
  
  <p>How can I do the same in Wordpress?</p>
  
  <p>I tried POST approch, but I am not able to retrieve the post value in my front end. </p>
  
  <p>Can anyone please suggest?</p>
  
  <p>I tried retrieving post as below:</p>
  
  <pre><code>$args = array(
      'slug' =&gt; 'cpurl',
      'post_type' =&gt; 'cpurl',
      'post_status' =&gt; 'draft',
      'numberposts' =&gt; 1
  );
  $my_posts = get_posts($args);
  print_r ($my_posts);
  </code></pre>
  
  <p>shows empty array</p>