Thanks for your help, everything is working fine.
Thanks, i think im on the way, still not there, but almost.
The code looks like this for the moment:
foreach ( $posts as $post ) {
$post_back_id = the_field('back_image', $udt_project->ID);
$back_image_src=wp_get_attachment_image_src($post_back_id,'back-thumb');
$homepage_secs.='<div class="back-thumb-container"><div class="back-thumb"><img class="image" src="'.$back_image_src[0].'" /></div></div>';
}
but, in the website source code, it looks like this:
http://localhost/test/wp-content/uploads/2013/09/test.jpg
<div class="back-thumb-container">
<div class="back-thumb">
<img class="image" alt="123456789" src="">
</div>
</div>
I have found the path to the second image, but its not in between the src-tag.
Any ideas?
Thanks.
Thanks guys so far for your help.
Im totally with it, to use get_post_meta($post->id)
, but i still have no idea where exactly put the_field('image-field-name')
or get_field('image-field-name')
.
I tried so many things, and i remember once, i saw some code of the image in the code, but i cant really remember the solution, its like to miss the forest for the trees.
Mike