Getting Thumbnail Path rather than Image Tag

Thumbnail is essentially attachment so you can approach from that side – lookup ID with get_post_thumbnail_id() and fetch data with wp_get_attachment_image_src(), like this: if (has_post_thumbnail()) { $thumb = wp_get_attachment_image_src(get_post_thumbnail_id(), ‘thumbnail_name’); echo $thumb[0]; // thumbnail url } (source)

Set Featured Image Front Frontend Form

you can do that by running the function set_post_thumbnail( $my_post_id, $thumbnail_id ); remember, you have to process and insert the image into the library first: $uploaddir = wp_upload_dir(); $file = $_FILES[ … whatever you have in your POST data … ]; $uploadfile = $uploaddir[‘path’] . “https://wordpress.stackexchange.com/” . basename( $file ); move_uploaded_file( $file , $uploadfile ); … Read more

Get featured image URL by page id

Did you try anything? Its always helpful to share what you have tried. $url = wp_get_attachment_url( get_post_thumbnail_id($post_id) ); Or if you want to get the image by image size. $src = wp_get_attachment_image_src( get_post_thumbnail_id($post_id), ‘thumbnail_size’ ); $url = $src[0]; http://codex.wordpress.org/Function_Reference/get_post_thumbnail_id http://codex.wordpress.org/Function_Reference/wp_get_attachment_url http://codex.wordpress.org/Function_Reference/wp_get_attachment_image_src

Can I refresh the thumbnails programmatically?

You may want to look at the plugin Regenerate Thumbnails by Viper007Bond. Basically, this is how to do it: function regenerateThumbnails() { $images = $wpdb->get_results( “SELECT ID FROM $wpdb->posts WHERE post_type=”attachment” AND post_mime_type LIKE ‘image/%'” ); foreach ( $images as $image ) { $id = $image->ID; $fullsizepath = get_attached_file( $id ); if ( false === … Read more