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 Thumbnail(s)
   


Possibly Related Threads...
Thread Author Replies Views Last Post
  HELP: Djbaddo Theme Needed Dancing2010 2 96 11 hours ago
Last Post: djtazzy
  HELP: Primestv.co Wordpress Theme Needed bossyjimmy 4 60 10-11-2018, 07:29 PM
Last Post: bossyjimmy
  HELP: Current Theme For Naijaloaded Deneger 3 75 10-10-2018, 09:20 AM
Last Post: UltrapNgcomposer
  HELP: 042coded.com.ng Mobile Theme Needed Dancing2010 1 71 10-04-2018, 12:05 PM
Last Post: Kasandra
  HELP: 360nobs Max Blog Theme Is Needed, Payment Involved Superbo155 3 88 09-24-2018, 11:06 AM
Last Post: Ngmusik
  HELP: Wordpress Mobile Theme Neede henry 2 109 09-21-2018, 05:17 PM
Last Post: Fela45
  SHARED: Naijaloaded Wordpress Theme By Kingsolomon Kingsolomon 8 400 09-18-2018, 03:43 PM
Last Post: hypper360
  SHARED: Ngcomposerv1 Mobile Theme Shared UltrapNgcomposer 11 388 09-15-2018, 09:02 PM
Last Post: Niggasloaded
  HELP: Please Somebody Should Help Me With This Wordpress Site Theme webtutorforum 2 74 09-11-2018, 05:44 PM
Last Post: webtutorforum
  HELP: Nctians Help Me On My Website Homepage UltrapNgcomposer 18 324 09-02-2018, 07:57 PM
Last Post: dealwap



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