how to add thumbnail image
-
hi, could anyone please explain me how to add thumbnail image on my theme in the main index template. my theme using “excerpt” listing and do not suport image on my front page. please help me. this is my site, i just want to add thumbnail image on my post on front page. thanks
-
Does your theme support post thumbnails?
no, thats why i want that thumbnail images on my frontpage. my theme is newsweek theme with magazine style. is there any code to do this?
i just read the link should i try the code from that link?
thanks for the link:Di tried the code from
https://markjaquith.wordpress.com/2009/12/23/new-in-wordpress-2-9-post-thumbnail-images/
but it didnt work:(should i try the code from that link
Yes but that’s only step 1. You’ll then need to edit each of the template files for the pages where you want to show post thumbnails and add the_post_thumbnail template tag.
A good resource/tutorial for implementing post thumbs is at:
https://markjaquith.wordpress.com/2009/12/23/new-in-wordpress-2-9-post-thumbnail-images/this is the error msg when i updated my index.php
if ( function_exists( ‘add_theme_support’ ) ) { // Added in 2.9 add_theme_support( ‘post-thumbnails’ ); set_post_thumbnail_size( 50, 50, true ); // Normal post thumbnails add_image_size( ‘single-post-thumbnail’, 400, 9999 ); // Permalink thumbnail size }
Warning: Cannot modify header information – headers already sent by (output started at /srv/disk1/halfliferonin/www/eventsexpo.net/wp-content/themes/newsweek/functions.php:10) in /~/www/eventsexpo.net/wp-admin/theme-editor.php on line 75please help:D my site in trouble, i cant edit my theme editor anymore. even to log out from my www.ads-software.com this msg come out
Warning: Cannot modify header information – headers already sent by (output started at /~/www/eventsexpo.net/wp-content/themes/newsweek/functions.php:6) in /~/www/eventsexpo.net/wp-login.php on line 302
Warning: Cannot modify header information – headers already sent by (output started at /~/www/eventsexpo.net/wp-content/themes/newsweek/functions.php:6) in /~/www/eventsexpo.net/wp-login.php on line 314
Warning: Cannot modify header information – headers already sent by (output started at /~/www/eventsexpo.net/wp-content/themes/newsweek/functions.php:6) in /~/www/eventsexpo.net/wp-includes/pluggable.php on line 692
Warning: Cannot modify header information – headers already sent by (output started at /~/www/eventsexpo.net/wp-content/themes/newsweek/functions.php:6) in /~/www/eventsexpo.net/wp-includes/pluggable.php on line 693
Warning: Cannot modify header information – headers already sent by (output started at /~/www/eventsexpo.net/wp-content/themes/newsweek/functions.php:6) in /~/www/eventsexpo.net/wp-includes/pluggable.php on line 694
Warning: Cannot modify header information – headers already sent by (output started at /~/www/eventsexpo.net/wp-content/themes/newsweek/functions.php:6) in /~/www/eventsexpo.net/wp-includes/pluggable.php on line 695
Warning: Cannot modify header information – headers already sent by (output started at /~/www/eventsexpo.net/wp-content/themes/newsweek/functions.php:6) in /~/www/eventsexpo.net/wp-includes/pluggable.php on line 696
Warning: Cannot modify header information – headers already sent by (output started at /~/www/eventsexpo.net/wp-content/themes/newsweek/functions.php:6) in /~/www/eventsexpo.net/wp-includes/pluggable.php on line 697
Warning: Cannot modify header information – headers already sent by (output started at /~/www/eventsexpo.net/wp-content/themes/newsweek/functions.php:6) in /~/www/eventsexpo.net/wp-includes/pluggable.php on line 700
Warning: Cannot modify header information – headers already sent by (output started at /~/www/eventsexpo.net/wp-content/themes/newsweek/functions.php:6) in /~/www/eventsexpo.net/wp-includes/pluggable.php on line 701
Warning: Cannot modify header information – headers already sent by (output started at /~/www/eventsexpo.net/wp-content/themes/newsweek/functions.php:6) in /~/www/eventsexpo.net/wp-includes/pluggable.php on line 702
Warning: Cannot modify header information – headers already sent by (output started at /~/www/eventsexpo.net/wp-content/themes/newsweek/functions.php:6) in /~/www/eventsexpo.net/wp-includes/pluggable.php on line 703
Warning: Cannot modify header information – headers already sent by (output started at /~/www/eventsexpo.net/wp-content/themes/newsweek/functions.php:6) in /~/www/eventsexpo.net/wp-includes/pluggable.php on line 706
Warning: Cannot modify header information – headers already sent by (output started at /~/www/eventsexpo.net/wp-content/themes/newsweek/functions.php:6) in /~/www/eventsexpo.net/wp-includes/pluggable.php on line 707
Warning: Cannot modify header information – headers already sent by (output started at /~/www/eventsexpo.net/wp-content/themes/newsweek/functions.php:6) in /~/www/eventsexpo.net/wp-includes/pluggable.php on line 708
Warning: Cannot modify header information – headers already sent by (output started at /~/www/eventsexpo.net/wp-content/themes/newsweek/functions.php:6) in /~/www/eventsexpo.net/wp-includes/pluggable.php on line 709
Warning: Cannot modify header information – headers already sent by (output started at /~/www/eventsexpo.net/wp-content/themes/newsweek/functions.php:6) in /~/www/eventsexpo.net/wp-includes/pluggable.php on line 868
You’ve introduced a space or an unwanted character into your theme’s functions.php file.
Solving “headers already sent” warnings
Ensure that you only paste content from a plain text editor into the file. Content copied from a web page or a word processor like Word may contain incompatible or invisible formatting characters.
thank you so much esmi for helping me, i resolve it. from this i have new knowledge:D
Excellent! ??
- The topic ‘how to add thumbnail image’ is closed to new replies.