Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HELP: My Carrington Theme Featured Images On Homepage Are Blank Not Showing Thumbnails
#1
Hello Guys,

My featured images on the homepage are blank (not showing thumbnails) here is my function.php

<?php

// This file is part of the Carrington Mobile Theme for WordPress
// http://carringtontheme.com
//
// Copyright © 2008-2009 Crowd Favorite, Ltd. All rights reserved.
// http://crowdfavorite.com
//
// Released under the GPL license
// http://www.opensource.org/licenses/gpl-license.php
//
// **********************************************************************
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// **********************************************************************

if (__FILE__ == $_SERVER['SCRIPT_FILENAME']) { die(); }

load_theme_textdomain('carrington-mobile');

define('CFCT_DEBUG', false);
define('CFCT_PATH', trailingslashit(TEMPLATEPATH));
define('CFCT_HOME_LIST_LENGTH', 5);
define('CFCT_HOME_LATEST_LENGTH', 250);

$cfct_options = array(
'cfct_about_text'
, 'cfct_credit'
, 'cfct_posts_per_archive_page'
, 'cfct_wp_footer'
);

function cfct_blog_init() {
if (cfct_get_option('cfct_ajax_load') == 'yes') {
cfct_ajax_load();
}
}
add_action('init', 'cfct_blog_init');

function cfct_archive_title() {
if(is_author()) {
$output = __('Posts by:');
} elseif(is_category()) {
$output = __('Category Archives:');
} elseif(is_tag()) {
$output = __('Tag Archives:');
} elseif(is_archive()) {
$output = __('Archives:');
}
$output .= ' ';
echo $output;
}

function cfct_mobile_post_gallery_columns($columns) {
return 1;
}
add_filter('cfct_post_gallery_columns', 'cfct_mobile_post_gallery_columns');

if (!is_admin()) {
wp_enqueue_script('jquery');
wp_enqueue_script('carrington-mobile', get_bloginfo('template_directory').'/js/mobile.js', array('jquery'), '1.0');
}

include_once(CFCT_PATH.'carrington-core/carrington.php');
function catch_that_image() {
global $post, $posts;
$first_img = '';
ob_start();
ob_end_clean();
$output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches);
$first_img = $matches [1] [0];

if(empty($first_img)){
$first_img = "/images/nothumb.png";
}
return $first_img;
}
?>
<?php
function string_limit_words($string, $word_limit)
{
$words = explode(' ', $string, ($word_limit + 1));
if(count($words) > $word_limit)
array_pop($words);
return implode(' ', $words);
}
add_theme_support( 'post-thumbnails' );
?>

And here is my excerpt-default.php

<?php

// This file is part of the Carrington Mobile Theme for WordPress
// http://carringtontheme.com
//
// Copyright © 2008-2009 Crowd Favorite, Ltd. All rights reserved.
// http://crowdfavorite.com
//
// Released under the GPL license
// http://www.opensource.org/licenses/gpl-license.php
//
// **********************************************************************
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// **********************************************************************

if (__FILE__ == $_SERVER['SCRIPT_FILENAME']) { die(); }
if (CFCT_DEBUG) { cfct_banner(__FILE__); }

?>
<a href="<?php the_permalink(); ?>"><table border="0 " width="100%">
<tbody><tr>
<td align="left"><img src='<?php echo catch_that_image(); ?>'width='50'height='50'/></td>
<td align="left"><?php the_title(); ?></td>
</tr>
</tbody></table></a>


Attached Files Image(s)
   


Possibly Related Threads...
Thread Author Replies Views Last Post
  SHARED: Londonbaze.com Wordpress Theme Now Shared RaphaelAnthony 3 474 1 hour ago
Last Post: MasterKhoded
  SHARED: Naijaloaded Wordpress Theme By Kingsolomon Kingsolomon 2 67 08-15-2018, 05:24 AM
Last Post: Akinbiodun
  HELP: I Need a Theme Osdas 6 164 08-14-2018, 05:33 AM
Last Post: cliffordwillis
  ALERT:  Come In And Share The Best Wp Theme You Ever Used jonath45 15 298 08-05-2018, 01:37 PM
Last Post: Phanteez
  HELP: Okhype.com Current Wordpress Theme Needed Please! KvnGfeLix 9 402 07-31-2018, 08:31 PM
Last Post: Badooskid
  HELP: Wp Theme Needed bankywee 4 176 07-31-2018, 08:28 PM
Last Post: Badooskid
  HELP: Who has Naijaonly.com Mobile Theme Kanicorp 7 514 07-31-2018, 08:27 PM
Last Post: Badooskid
  Please I Need Naijaflaver Wp Theme uche393 2 116 07-31-2018, 08:24 PM
Last Post: Badooskid
  HELP: Homepage Featured Image Thumbnails Micassa 0 39 07-28-2018, 09:42 PM
Last Post: Micassa
  SHARED: New "naijaloaded" Wordpress Theme [new Version] 46hype 14 500 07-07-2018, 12:07 AM
Last Post: solutionz



Users browsing this thread: 1 Guest(s)

About Nigeria's Creative Talents

Nigeria's Creative Talents is an online community where every creative Nigerians can share ideas with themselves.

For any more information, please use our contact form.

              User Links

              Advertise