Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HELP: My Carrington Featured Images Are Bank 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>
#2
get this function file


Attached Files
.php   functions.php (Size: 2.32 KB / Downloads: 4)
Reply
#3
and this excerpt


Attached Files
.php   excerpt-default.php (Size: 1.04 KB / Downloads: 4)
Reply
#4
then try to make sure the images are yours
Reply
#5
How do i make the images to be mine?
Reply
#6
(08-07-2017, 07:22 AM)Micassa Wrote:
How do i make the images to be mine?


upload them, rather than copying the image link from another site. Cause if dah site has server probs, ur images will go down too!
Reply
#7
(08-07-2017, 07:22 AM)Micassa Wrote:
How do i make the images to be mine?


since its WP, just install "qq auto save images plugin" and all copied images will be saved in your db
Reply
#8
this code not correct <td align="left"><img src='<?
php echo catch_that_image(); ?
>'width='50'height='50'/></td>




This is the correct one

<td align="left"><img src='<?
php echo catch_that_image(); ?
> width="50" height="50"/></td>
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  HELP: Homepage Featured Image Thumbnails Micassa 0 39 07-28-2018, 09:42 PM
Last Post: Micassa
  HELP: How To Fix Distorted Image Thumbnails Micassa 11 260 07-02-2018, 02:24 PM
Last Post: alhani
  TUTORIAL: How To Edit Uploaded Carrington Themes! idris4u2c 1 119 03-15-2018, 01:24 PM
Last Post: anngrant
  HELP: How Do I Separate This In Carrington Mobile Nwike360 2 87 02-21-2018, 10:17 PM
Last Post: Kingsolomon
  SHARED: Liteloaded.com's Current Carrington Mobile Theme Hackinubee 9 1,087 12-29-2017, 11:02 AM
Last Post: Hackinubee
  Review Needed On This Carrington Design -unbelievable brainiac 21 536 09-10-2017, 08:08 PM
Last Post: Badooskid
  SHARED: Naijaloaded Latest Wp Theme Clone With Featured Image FastestLiker 0 550 09-09-2017, 07:23 AM
Last Post: FastestLiker
  HELP: My Carrington Featured Images Are In Different Sizes And Blurred Micassa 4 183 08-19-2017, 09:11 AM
Last Post: Cortex
  HELP: Ngcomposer Theme Featured Images Micassa 0 125 08-07-2017, 08:05 AM
Last Post: Micassa
  HELP: My Carrington Theme Featured Images On Homepage Are Blank Not Showing Thumbnails Micassa 0 120 08-07-2017, 05:19 AM
Last Post: Micassa



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