Posted By

kai330 on 07/25/11


Tagged


Versions (?)

Custom thum size in wp


 / Published in: PHP
 

  1. /*dodavanje post thumbova*/
  2.  
  3. if ( function_exists( 'add_theme_support' ) ) {
  4. add_theme_support( 'post-thumbnails' );
  5. }
  6.  
  7. /*dodavanje custom size-a za featured image*/
  8. add_image_size( 'pocetna-thumb', 120, 400, true );
  9. add_image_size( 'thumbnail', 140, 300, true );
  10. add_image_size( 'medium', 300, 400, true );
  11. add_image_size( 'large', 1024, 1024);

Report this snippet  

You need to login to post a comment.