Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Displaying a image #1786
    vincire
    Member

    Ok I will try this.

    Thank you

    in reply to: Displaying a image #1772
    vincire
    Member

    Hi Steve, thank you for your answer.

    The images still is’nt displayed. My knowledge of PHP is not sufficient to solve this.
    I have this to display the image uploaded with the cpt code above:

    <?php $image_ids = get_post_meta($post_id, 'portret');   
    		foreach ($image_ids as $image)
    {
      $myupload = get_post($image); 
      $title = $myupload->post_title;
      $description = $myupload->post_content;
      $caption = $myupload->post_excerpt;
     
      echo 'title:' . $title;
      echo 'description:' . $description;
      echo 'caption:' . $caption;
     
      print_r($myupload); // Displays all data
    }
    ?>
    in reply to: Display Custom post type on frontend / template #1742
    vincire
    Member

    Thank you for your reply.
    I will study these functions in de Codex. Also I did find a tutorial with some practical code somewhere else.
    Probably it would be good to have this info in the User Guide. And I think some code examples would be handy for people that do not work with PHP code everyday.

Viewing 3 posts - 1 through 3 (of 3 total)