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
  SHARED: New "naijaloaded" Wordpress Theme [new Version] 46hype 13 226 Yesterday, 02:26 PM
Last Post: Hackinubee
Tongue SHARED: Latest 9jakolong Wordpress Theme Shared Deelino 10 152 Yesterday, 01:44 AM
Last Post: Phanteez
  HELP: Who has Naijaonly.com Mobile Theme Kanicorp 6 373 06-20-2018, 03:06 PM
Last Post: Phanteez
  HELP: How To Fix Distorted Image Thumbnails Micassa 10 154 06-18-2018, 01:23 PM
Last Post: Micassa
  HELP: Okhype.com Current Wordpress Theme Needed Please! KvnGfeLix 8 240 06-18-2018, 12:19 AM
Last Post: Hackinubee
  SHARED: Newsmag Lite: Responsible Wordpress Theme Free Download Bigga5 2 164 06-15-2018, 11:43 AM
Last Post: Joepraiz111
  SHARED: Waploaded Wordpress Theme Free Download 46hype 0 69 06-15-2018, 08:54 AM
Last Post: 46hype
  HELP: Wp Theme Needed bankywee 3 131 06-05-2018, 09:37 AM
Last Post: mogulkahn
  HELP: I Need a Theme Osdas 4 100 06-03-2018, 07:20 PM
Last Post: mogulkahn
  SHARED: Markloaded Current Mobile Wp Theme Shared Deelino 28 631 06-02-2018, 09:22 PM
Last Post: koloradio



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