Combining Post Thumbnails With Nivo Slider

the_post_thumbnail() displays the featured image. get_the_post_thumbnail() retrieves it for use in code. Try something like this: <?php $featured_image = get_the_post_thumbnail( get_the_ID() ); $fi_src = $featured_image[‘src’]; $slider = get_the_post_thumbnail( get_the_ID(), ‘sliderimage’ ); $s_src = $slider[‘src’]; ?> <img src=”https://wordpress.stackexchange.com/questions/130312/<?php echo $fi_src; ?>” data-thumb=””<?php echo $s_src; ?> title=”” />

Mass/Bulk assign featured images to posts

As you don’t have much programming experience, I’ll post a ready-to-use solution here. I’ve looked at your code a little longer, and the problem is that after array_shift, $ids is still an array. set_post_thumbnail expects and integer, not an array. You could use $ids[0] as the second parameter, but the following is a cleaner solution, … Read more

How can I retrieve a Featured Image thumbnail using only the Post_title?

You can try the following: /** * Get the featured image by post title (Simple version) * * @see http://wordpress.stackexchange.com/a/158344/26350 * @param string $title Post title * @param mixed $size Featured image size */ function get_featured_image_by_post_title_wpse_simple( $title=””, $size=”thumbnail” ) { $obj = get_page_by_title( $title, OBJECT, ‘post’ ); return ( is_object ( $obj ) ) ? … Read more