Tag Info

Hot answers tagged

3

You are not using loop properly. Not tested but you can try this: <?php if (have_posts()) : ?> <br /> <div class="jumbotron"> <?php while (have_posts()) : the_post(); ?> <?php the_post_thumbnail(array('class' => 'img-thumbnail')); ?> <?php endwhile; ?> <br /><br ...


2

Use this. you will need to call thumbnail sizes. $small_regular = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID), 'small_regular' ); $big_regular = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID), 'big_regular' ); echo "<style type='text/css'>"; echo ".entry-featured-image { background-image: url('" . ...


1

I was writing a guide but then I found a tutorial for this. Follow this tutorial to setup subdomain for uploaded files. http://www.dezzain.com/wordpress-tutorials/how-to-move-wordpress-uploads-path-to-subdomain/


1

I am not sure why you want to do this, but you can accomplish it with preg_replace(). Try adding this to your theme's functions.php: add_filter( 'admin_post_thumbnail_html', 'remove_featured_image_link' ); function remove_featured_image_link($content) { $content_edit = preg_replace('/<a ...


1

Install plugin: https://wordpress.org/plugins/force-regenerate-thumbnails/ and regenerate all thumbnails. Or steps: Create new dimension for images: add_image_size ('thumb-cropped', 227, 133, true); // Set necessary sizes (true = cropped) Get images with the sizes in you function. get_the_post_thumbnail($post->ID); fix to: ...



Only top voted, non community-wiki answers of a minimum length are eligible