Take the 2-minute tour ×  I'm using advancd-custom-fields plugin
and I'm about to modifiy my acrhive content page that is shown
frontend. I use the file personnel-archive.php (because the
custom post type used is personnel) in my theme in that works
ok:  Beginning of this file looks like:  <?php get_header(); ?>
<h1 class="personnel"><?php the_title(); ?></h1>
<div class="entry">                   <?php echo
image_personnel(get_the_ID());?>                  <?php
the_content('<p class="serif">L&auml;s resten &raquo;</p>'); ?>
<?php wp_link_pages(array('before' =>
'<p><strong>Sidor:</strong> ', 'after' => '</p>',
'next_or_number' => 'number')); ?>  I my functions.php I have
made this function:  function image_personnel($post_ID) {
$post_type = get_post_type( $post_ID );     $content = '';
//If custom type for shown post is personnel, then show image
first     if ($post_type == 'personnel') {
$picture_personnel = get_post_custom_values('picture_perso