Skip to main content
added 456 characters in body
Source Link
Max
  • 1
  • 5

i need the code which will add default thumb, if there is not featured image available. I was using default thumb plus for this but this plugin is using a lot of resource so i need to remove it.

I was trying to follow this tutorial

But no luck. Inside my widget i have this code

<?php if (  (function_exists('has_post_thumbnail')) && (has_post_thumbnail())  ) { ?>

Edited : And whole code you can see here pastebin.com/715evL1E

Any idea how to this ? thanks

I tried also with suggested code but i got an error .This is what i try the last in index.php

<?php if (  (function_exists('has_post_thumbnail')) && (has_post_thumbnail())  ) { ?>

            
                <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_post_thumbnail('large-thumb'); } ?>
  <img src="<?php echo get_template_directory_uri(); ?>/images/transfer-deadline-150x150.jpg" /><?php } ?></a>

i need the code which will add default thumb, if there is not featured image available. I was using default thumb plus for this but this plugin is using a lot of resource so i need to remove it.

I was trying to follow this tutorial

But no luck. Inside my widget i have this code

<?php if (  (function_exists('has_post_thumbnail')) && (has_post_thumbnail())  ) { ?>

Edited : And whole code you can see here pastebin.com/715evL1E

Any idea how to this ? thanks

i need the code which will add default thumb, if there is not featured image available. I was using default thumb plus for this but this plugin is using a lot of resource so i need to remove it.

I was trying to follow this tutorial

But no luck. Inside my widget i have this code

<?php if (  (function_exists('has_post_thumbnail')) && (has_post_thumbnail())  ) { ?>

Edited : And whole code you can see here pastebin.com/715evL1E

Any idea how to this ? thanks

I tried also with suggested code but i got an error .This is what i try the last in index.php

<?php if (  (function_exists('has_post_thumbnail')) && (has_post_thumbnail())  ) { ?>

            
                <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_post_thumbnail('large-thumb'); } ?>
  <img src="<?php echo get_template_directory_uri(); ?>/images/transfer-deadline-150x150.jpg" /><?php } ?></a>
added 68 characters in body
Source Link
Max
  • 1
  • 5

i need the code which will add default thumb, if there is not featured image available. I was using default thumb plus for this but this plugin is using a lot of resource so i need to remove it.

I was trying to follow this tutorial

But no luck. Inside my widget i have this code

<?php if (  (function_exists('has_post_thumbnail')) && (has_post_thumbnail())  ) { ?>

Edited : And whole code you can see here pastebin.com/715evL1E

Any idea how to this ? thanks

i need the code which will add default thumb, if there is not featured image available. I was using default thumb plus for this but this plugin is using a lot of resource so i need to remove it.

I was trying to follow this tutorial

But no luck. Inside my widget i have this code

<?php if (  (function_exists('has_post_thumbnail')) && (has_post_thumbnail())  ) { ?>

Any idea how to this ? thanks

i need the code which will add default thumb, if there is not featured image available. I was using default thumb plus for this but this plugin is using a lot of resource so i need to remove it.

I was trying to follow this tutorial

But no luck. Inside my widget i have this code

<?php if (  (function_exists('has_post_thumbnail')) && (has_post_thumbnail())  ) { ?>

Edited : And whole code you can see here pastebin.com/715evL1E

Any idea how to this ? thanks

Source Link
Max
  • 1
  • 5

Default thumb - how to set it

i need the code which will add default thumb, if there is not featured image available. I was using default thumb plus for this but this plugin is using a lot of resource so i need to remove it.

I was trying to follow this tutorial

But no luck. Inside my widget i have this code

<?php if (  (function_exists('has_post_thumbnail')) && (has_post_thumbnail())  ) { ?>

Any idea how to this ? thanks