Tagged: php

How to use featured image in wordpress 0

How to use featured image in wordpress

To use featured image in wordpress, You must add this line in your functions.php file if ( function_exists( ‘add_theme_support’ ) ) { add_theme_support( ‘post-thumbnails’ ); set_post_thumbnail_size( 150, 150 ); // This is default Post...

How to check file is exist or not using php 0

How to check file is exist or not using php

We can check the file is exist or not in the folder usingĀ  file_exists function Here is a simple code to check the presence of the file $add=”images/119.jpg”; if(file_exists($add)) { echo “Yes file is...