Wordpress Important Notes , Resize Featured Imige ,Featured image from Post

1.    how to change thumbnil image  size  wordpress
Ans.  Add this line into  functions.php
        add_image_size( 'featured2', 350, 265, true );
         "featured2 " is a thumbnail image tag name
         and true is related "crope image "

        after that add this line in template or where you wat
       the_post_thumbnail('featured2',array('class' => 'attachment-slider wp-post-image'));

<?php query_posts('p=1'); if(have_posts()) : the_post(); ?>
<?php the_content(); ?>
<?php endif; ?>


$details->viewcount


SHORT NOTE :  DISABLE AUTOMATIC UPDATE 
*************define( 'AUTOMATIC_UPDATER_DISABLED', true );  **************


2. How to Hide featured Image

Ans : download this plugin and hide image in a post
   https://wordpress.org/plugins/hide-featured-image/installation/

No comments:

Post a Comment

Pages