Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Wordpress Featured Image

Featured Replies

Evening gents...

 

Many times before i have set up featured images but this time it just wont play ball.

It's been a long day so it may just be me being dumb however i'm setting up a new blog that uses the featured image on the home page.

 

As usual i have this in the functions.php

 

// This theme uses post thumbnails
add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 590, 125, true ); // default post thumbnails

 

and this within my index loop...

 

<a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) { the_post_thumbnail(array(590,125), array("class" => "alignleft post_thumbnail")); } ?></a>

 

However when viewing the page the image only comes in at 125 x 125 :/

 

A view source brings this...

 

<a href="http://allabouteveblog.co.uk/06/2011/blog/" title="Permalink to ‘Cherish the Dress’ Shoot in Largs" rel="bookmark"><img width="125" height="125" src="http://allabouteveblog.co.uk/wp-content/uploads/2011/06/demo2-150x150.jpg" class="alignleft post_thumbnail wp-post-image" alt="demo" title="demo" /></a>

 

 

Anyone got a clue?

Tried giving it a handle?

 

add_image_size('homepage-featured', 590, 125, true);

 

along with

 

the_post_thumbnail('homepage-featured', array("class" => "alignleft post_thumbnail"));

 

Also, did you upload the image before changing the default thumbnail size? If so, you'll need to reupload it or install the Regenerate Thumbnails plugin.

Edited by Renaissance-Design

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.