- Home
- Categorie
- Coding e Sistemistica
- WordPress
- Nuovi tag dei template wordpress
-
Nuovi tag dei template wordpress
Ciao ragazzi,
qualcuno di voi ha provato a includere questi 2 nuovi tag
http://codex.wordpress.org/Template_Tags/the_post_thumbnail
http://codex.wordpress.org/Template_Tags/get_the_post_thumbnailnel proprio template di wordpress?
Sembra che mostrino l'anteprima di un'immagine contenuta in un articolo o una pagina. Pero' non sono riuscito ad aggiungerli al mio template...
-
Hai aggiunto questo > add_theme_support( 'post-thumbnails' ); al tuo file functions.php ?
-
@geggiot said:
Certo.. poi ho inserito
[php]<?php
get_the_post_thumbnail($page->ID);
?>[/php]nel loop ma non mi restituisce nulla.
-
Hai dato un'occhiata qui http://justintadlock.com/archives/2009/11/16/everything-you-need-to-know-about-wordpress-2-9s-post-image-feature ? Ti spiega passo passo come attivare la funzione.
-