Search
 
SCRIPT & CODE EXAMPLE
 

PHP

wordpress if thumbnail show else

<?php if ( has_post_thumbnail() ) {
the_post_thumbnail();
} else { ?>
<img src="<?php bloginfo('template_directory'); ?>/images/default-image.jpg" alt="<?php the_title(); ?>" />
<?php } ?>
Comment

PREVIOUS NEXT
Code Example
Php :: php loop x times 
Php :: php function to remove underscore 
Php :: Composer detected issues in your platform: Your Composer dependencies require a PHP version "= 7.3.0". You are running 7.2.34 
Php :: php version 
Php :: None of the supported PHP extensions (PgSQL, PDO_PgSQL) are available. 
Php :: how to add php 7.4 in homebrew 
Php :: ERROR 1071 (42000) at line 76: Specified key was too long; max key length is 767 bytes laravel 
Php :: password match laravel 
Php :: brew switch php version 
Php :: PHP Warning: require(/vendor/autoload.php): failed to open stream: No such file or directory in /var/www/api-fase/bootstrap/autoload.php on line 17 
Php :: php time format am pm 
Php :: php add hours to current date 
Php :: laravel $loop-iteration 
Php :: how to set no cache header php 
Php :: how to install bootstrap in laravel 
Php :: laravel model string primary key 
Php :: php delay 
Php :: row count in codeigniter 
Php :: how validate hash string in laravel 
Php :: php unit skip test 
Php :: sleep microseconds php 
Php :: laravel old request htmlselect 
Php :: year shortcode 
Php :: validate year laravel 
Php :: comment supprimer balise script hmtl en php regex 
Php :: laravel inline if 
Php :: for php 
Php :: laravel convert datetime to date 
Php :: laravel eloquent search query 2020 
Php :: php remove quotes from string 
ADD CONTENT
Topic
Content
Source link
Name
6+6 =