Viewing 3 replies - 1 through 3 (of 3 total)
  • hey man, thanx to your post i solved my same problem ??
    instead of get_post_type try to write your post type (or custom post type), save it in a variable and echo out the variable itself, kind of like this:

    <?php if (have_posts()) : while (have_posts()) : the_post();
    $custom = MultiPostThumbnails::get_post_thumbnail_url('post', 'secondary-image', NULL); ?>
    
    <div class="yourDiv"><?php echo $custom; ?></div>
    
    <?php endwhile; endif; ?>

    Well that sure is ugly, but it works! According to the FAQ it should not have to work like this, perhaps they should consider changing it I thought I was going crazy for a second!

    Thanks allot! ) you very help me )

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘get_post_thumbnail_url not working’ is closed to new replies.