Forum Replies Created
Viewing 3 posts - 1 through 3 (of 3 total)
-
AuthorPosts
-
vincireMemberOk I will try this.
Thank you
vincireMemberHi 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 } ?>
vincireMemberThank 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. -
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)