Jump to content

Help: Adding a Carousel/featured content Thesis Blog


hadi

Recommended Posts

I have installed the Carousel code using tutorial at http://www.wolf-howl.com/blogs/how-to-carousel/

now i amfacing a problem that every thing is working expect images thumbnail. here is the site http://www.digpk.com/ where i am try to make carousel. you can see the featured posts at top with missing thumbnails. Thanks in advance.

picture of the problem is also attached.

 

[attachment deleted by admin]

Link to comment
Share on other sites

here is the code and the thumb.php is attached.

i added the code below in custom-functions.php of thesis theme.

function top_carousel(){

global $post;

if (is_single ()){

echo '<div id="topcarousel">';

$the_query = new WP_Query(array(

'category_name'=>'featured',

'orderby'=>'date',

'order'=>'DESC',

'showposts'=>'6'

));

while ($the_query->have_posts()) : $the_query->the_post(); $do_not_duplicate = $post->ID;

$image = get_post_meta($post->ID, 'thesis_post_image', $single = true);

echo '<div class="carouselu">';

echo '<a href="';

echo the_permalink();

echo '"  >';

echo '<img src="http://test.digpk.com/public_html/test/wp-content/themes/thesis_18/lib/scripts/thumb.php?src='.$image.'&w=140&h=140&zc=1&q=100"></a>';

echo '<a href="';

echo the_permalink();

echo '"  >';

echo the_title();

echo '</a>';

echo '</div>';

endwhile;

echo '<div style="clear:both"></div>';

echo '</div>';

}

}

 

add_action('thesis_hook_before_header', 'top_carousel');

 

 

and i added the code below to custom.php according to instructions at http://www.wolf-howl.com/blogs/how-to-carousel/

 

#topcarousel {border:1px solid #efefef; padding: 0px;padding-left:10px;}

.carouselu {width:150px;float:left;padding:3px;text-align:center;}

.carouselu IMG {border:2px solid #ccc;display:block;}

 

 

here is the site where i have installed it. http://test.digpk.com/

waiting for your kind support. thanks in advance

 

[attachment deleted by admin]

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.