<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Thumbnails in wordpress, non funzionano]]></title><description><![CDATA[<p dir="auto">Ciao a tutti, ho installato un nuovo template sul mio sito, template per la funzione ed il controllo, tra le alte cose delle thumbnails. Però non mi compaiono. Ho provato a vedere il file functions.php ma compare solo questo codice per le thumbnails</p>
<pre><code>// Add theme support for Featured Images
if ( function_exists( 'add_theme_support' ) ) {
    add_theme_support( 'post-thumbnails' );
}
</code></pre>
<p dir="auto">E' corretto o manca qualcosa?</p>
<p dir="auto">Questo il mio function.php</p>
<pre><code>&lt;?php

// Theme Settings Page
require_once(TEMPLATEPATH . "/theme-settings.php");

// Theme Styles
require_once(TEMPLATEPATH . "/theme-styles.php");

// Theme Widgets
require_once(TEMPLATEPATH . "/theme-widgets.php");

// Load Custom Post Options for Write Post and Write Page
require_once(TEMPLATEPATH . "/theme-metaboxes.php");

// Load Theme Javascript
require_once(TEMPLATEPATH . "/theme-js.php");

// Register widgetized areas
function theme_widgets_init() {
    register_sidebar(array (
        'name'=&gt;'Sidebar-Wide - Top',
        'id'=&gt;'widget-1',
        'before_widget' =&gt; '&lt;div id="%1$s" class="widget %2$s"&gt;&lt;div class="widget-wrap"&gt;',
        'after_widget' =&gt; '&lt;/div&gt;&lt;/div&gt;',
        'before_title' =&gt; '&lt;h3 class="widgettitle"&gt;&lt;span&gt;',
        'after_title' =&gt; '&lt;/span&gt;&lt;/h3&gt;',
        ));
    register_sidebar(array (
        'name'=&gt;'Sidebar-Wide - Bottom Left',
        'id'=&gt;'widget-2',
        'before_widget' =&gt; '&lt;div id="%1$s" class="widget %2$s"&gt;&lt;div class="widget-wrap"&gt;',
        'after_widget' =&gt; '&lt;/div&gt;&lt;/div&gt;',
        'before_title' =&gt; '&lt;h3 class="widgettitle"&gt;&lt;span&gt;',
        'after_title' =&gt; '&lt;/span&gt;&lt;/h3&gt;',
        ));
    register_sidebar(array (
        'name'=&gt;'Sidebar-Wide - Bottom Right',
        'id'=&gt;'widget-3',
        'before_widget' =&gt; '&lt;div id="%1$s" class="widget %2$s"&gt;&lt;div class="widget-wrap"&gt;',
        'after_widget' =&gt; '&lt;/div&gt;&lt;/div&gt;',
        'before_title' =&gt; '&lt;h3 class="widgettitle"&gt;&lt;span&gt;',
        'after_title' =&gt; '&lt;/span&gt;&lt;/h3&gt;',
        ));
    register_sidebar(array (
        'name'=&gt;'Sidebar-Narrow',
        'id'=&gt;'widget-4',
        'before_widget' =&gt; '&lt;div id="%1$s" class="widget %2$s"&gt;&lt;div class="widget-wrap"&gt;',
        'after_widget' =&gt; '&lt;/div&gt;&lt;/div&gt;',
        'before_title' =&gt; '&lt;h3 class="widgettitle"&gt;&lt;span&gt;',
        'after_title' =&gt; '&lt;/span&gt;&lt;/h3&gt;',
        ));
    register_sidebar(array (
        'name'=&gt;'Footer Widget 1',
        'id'=&gt;'widget-5',
        'before_widget' =&gt; '&lt;div id="%1$s" class="widget %2$s"&gt;&lt;div class="widget-wrap"&gt;',
        'after_widget' =&gt; '&lt;/div&gt;&lt;/div&gt;',
        'before_title' =&gt; '&lt;h3 class="widgettitle"&gt;&lt;span&gt;',
        'after_title' =&gt; '&lt;/span&gt;&lt;/h3&gt;',
        ));
    register_sidebar(array (
        'name'=&gt;'Footer Widget 2',
        'id'=&gt;'widget-6',
        'before_widget' =&gt; '&lt;div id="%1$s" class="widget %2$s"&gt;&lt;div class="widget-wrap"&gt;',
        'after_widget' =&gt; '&lt;/div&gt;&lt;/div&gt;',
        'before_title' =&gt; '&lt;h3 class="widgettitle"&gt;&lt;span&gt;',
        'after_title' =&gt; '&lt;/span&gt;&lt;/h3&gt;',
        ));
    register_sidebar(array (
        'name'=&gt;'Footer Widget 3',
        'id'=&gt;'widget-7',
        'before_widget' =&gt; '&lt;div id="%1$s" class="widget %2$s"&gt;&lt;div class="widget-wrap"&gt;',
        'after_widget' =&gt; '&lt;/div&gt;&lt;/div&gt;',
        'before_title' =&gt; '&lt;h3 class="widgettitle"&gt;&lt;span&gt;',
        'after_title' =&gt; '&lt;/span&gt;&lt;/h3&gt;',
        ));
    register_sidebar(array (
        'name'=&gt;'Footer Widget 4',
        'id'=&gt;'widget-8',
        'before_widget' =&gt; '&lt;div id="%1$s" class="widget %2$s"&gt;&lt;div class="widget-wrap"&gt;',
        'after_widget' =&gt; '&lt;/div&gt;&lt;/div&gt;',
        'before_title' =&gt; '&lt;h3 class="widgettitle"&gt;&lt;span&gt;',
        'after_title' =&gt; '&lt;/span&gt;&lt;/h3&gt;',
        ));
    register_sidebar(array (
        'name'=&gt;'Alt Home Page Widget 1',
        'id'=&gt;'widget-9',
        'before_widget' =&gt; '&lt;div id="%1$s" class="widget %2$s"&gt;&lt;div class="widget-wrap"&gt;',
        'after_widget' =&gt; '&lt;/div&gt;&lt;/div&gt;',
        'before_title' =&gt; '&lt;h3 class="widgettitle"&gt;&lt;span&gt;',
        'after_title' =&gt; '&lt;/span&gt;&lt;/h3&gt;',
        ));
    register_sidebar(array (
        'name'=&gt;'Alt Home Page Widget 2',
        'id'=&gt;'widget-10',
        'before_widget' =&gt; '&lt;div id="%1$s" class="widget %2$s"&gt;&lt;div class="widget-wrap"&gt;',
        'after_widget' =&gt; '&lt;/div&gt;&lt;/div&gt;',
        'before_title' =&gt; '&lt;h3 class="widgettitle"&gt;&lt;span&gt;',
        'after_title' =&gt; '&lt;/span&gt;&lt;/h3&gt;',
        ));
    register_sidebar(array (
        'name'=&gt;'Alt Home Page Widget 3',
        'id'=&gt;'widget-11',
        'before_widget' =&gt; '&lt;div id="%1$s" class="widget %2$s"&gt;&lt;div class="widget-wrap"&gt;',
        'after_widget' =&gt; '&lt;/div&gt;&lt;/div&gt;',
        'before_title' =&gt; '&lt;h3 class="widgettitle"&gt;&lt;span&gt;',
        'after_title' =&gt; '&lt;/span&gt;&lt;/h3&gt;',
        ));
}

add_action( 'init', 'theme_widgets_init' );

// Get image path for WP Network sites
function get_network_image_path ($img_src) {
    global $blog_id;
    if ( isset($blog_id) &amp;&amp; $blog_id &gt; 0 ) {
        $imageParts = explode('/files/', $img_src);
        if (isset($imageParts[1])) {
            $img_src = '/blogs.dir/' . $blog_id . '/files/' . $imageParts[1];
        }
    }
    return $img_src;
}

// Add thickbox to single post pages that use thickbox class
function solo_add_thickbox() {
    global $post;
    if ( is_singular() &amp;&amp; strpos($post-&gt;post_content,'class="thickbox"') !== false ) {
        add_thickbox();
    }
}

add_action('wp_print_styles','solo_add_thickbox');

// Add theme support for Featured Images
if ( function_exists( 'add_theme_support' ) ) {
    add_theme_support( 'post-thumbnails' );
}

// Add Excerpt field to Pages
add_post_type_support( 'page', 'excerpt' );

// Add RSS Feed Links
add_theme_support( 'automatic-feed-links' );

// Add support for WP 3.0 Menu Management
if (function_exists('add_theme_support')) {
    add_theme_support('menus');
}

if (function_exists('register_nav_menus')) {
    function register_my_menus() {
        register_nav_menus(array(
            'topnav' =&gt; __( 'Top Navigation' ),
            'catnav' =&gt; __( 'Category Navigation' ),
            'footernav' =&gt; __( 'Footer Navigation' )
            )
        );
    }
add_action( 'init', 'register_my_menus' );
}

function nav_fallback() { ?&gt;
    &lt;?php wp_page_menu( array( 'show_home' =&gt; 'Home', 'sort_column' =&gt; 'menu_order' ) ); ?&gt;
&lt;?php }

function footnav_fallback() { ?&gt;
    &lt;ul&gt;&lt;?php wp_list_pages( array( 'depth' =&gt; 1, 'title_li' =&gt; '', 'sort_column' =&gt; 'menu_order' ) ); ?&gt;&lt;/ul&gt;
&lt;?php }

function catnav_fallback() { ?&gt;
    &lt;ul class="clearfix"&gt;&lt;?php wp_list_categories('title_li='); ?&gt;&lt;/ul&gt;
&lt;?php }

// Checks for active Page Template File
function is_pagetemplate_active($pagetemplate = '') {
    global $wpdb;
    $sql = "select meta_key from $wpdb-&gt;postmeta where meta_key like '_wp_page_template' and meta_value like '" . $pagetemplate . "'";
    $result = $wpdb-&gt;query($sql);
    if ($result) {
        return TRUE;
    } else {
        return FALSE;
    }
}

// Get custom field value.
function get_custom_field($key, $echo = FALSE) {
    global $post;
    $custom_field = get_post_meta($post-&gt;ID, $key, true);
    if ($echo == FALSE) return $custom_field;
    echo $custom_field;
}

// Ready the theme for translation
load_theme_textdomain("solostream");

// Add Twitter and other social media links to user profile
add_filter('user_contactmethods','add_twitter_contactmethod',10,1);
function add_twitter_contactmethod( $contactmethods ) {
    $contactmethods['twitter'] = 'Twitter Username';
    $contactmethods['facebook'] = 'Facebook Username';
    $contactmethods['googbuzz'] = 'Google Plus Username';
    $contactmethods['linkedin'] = 'LinkedIn Username';
    $contactmethods['flickr'] = 'Flickr Username';
    $contactmethods['youtube'] = 'Youtube Username';

    return $contactmethods;
}

// This function limits the number of words in the magazine home page excerpt.
function string_limit_words($string, $word_limit) {
    $words = explode(' ', $string, ($word_limit + 1));
    if(count($words) &gt; $word_limit)
    array_pop($words);
    return implode(' ', $words);
}

// This function lists pings/trackbacks.
function list_pings($comment, $args, $depth) {
    $GLOBALS['comment'] = $comment; ?&gt;
        &lt;li id="comment-&lt;?php comment_ID(); ?&gt;"&gt;&lt;?php comment_author_link(); ?&gt; | &lt;?php comment_date(); ?&gt;
&lt;?php }

// Add rel="nofollow" to the read more link.
function add_nofollow_to_more_links($content) {
    return preg_replace("@class=\"more-link\"@", "class=\"more-link\" rel=\"nofollow\"", $content);
}

add_filter('the_content', 'add_nofollow_to_more_links');

// Remove the default border from gallery thumbnails. 
add_filter( 'gallery_style', 'remove_gallery_border' );

function remove_gallery_border( $galleryStyles ) {

    // Set the string we want to remove from the default style declaration. 
    $remove = "border: 2px solid #cfcfcf;";

    // Remove it.
    $galleryStyles = str_replace( $remove, '', $galleryStyles );

    return $galleryStyles ;
}

?&gt;
</code></pre>
]]></description><link>https://dev.connect.gt/topic/168806/thumbnails-in-wordpress-non-funzionano</link><generator>RSS for Node</generator><lastBuildDate>Mon, 30 Nov 2026 13:17:36 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/168806.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 30 Mar 2012 12:21:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Thumbnails in wordpress, non funzionano on Sat, 31 Mar 2012 07:26:08 GMT]]></title><description><![CDATA[<p dir="auto">Ciao, grazie per la risposta. Ho pensato di chidere aiuto a voi in quanto, ho acquisato il template (come potrei sennò avere il codice?). Il loro forum però non da segni di vita..in senso di supporto.</p>
<p dir="auto">Grazie mille lo stesso e buon fine settimana <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=2190ae3dadd" class="not-responsive emoji emoji-android emoji--wink" style="height:1.4em;width:auto;vertical-align:middle" title=";)" alt="😉" /></p>
]]></description><link>https://dev.connect.gt/post/1061064</link><guid isPermaLink="true">https://dev.connect.gt/post/1061064</guid><dc:creator><![CDATA[pincopallablue]]></dc:creator><pubDate>Sat, 31 Mar 2012 07:26:08 GMT</pubDate></item><item><title><![CDATA[Reply to Thumbnails in wordpress, non funzionano on Fri, 30 Mar 2012 13:27:20 GMT]]></title><description><![CDATA[<p dir="auto">Penso che non manchi nulla nel codice, ma non prendertela, il forum in questo caso è inflessibile.<br />
Per i temi premium c'è il supporto del costruttore.<br />
Comprati quel tema wp-clear che ora con lo sconto te lo vendono a circa 30 euro oppure dovrai arrangiarti da solo.</p>
]]></description><link>https://dev.connect.gt/post/1061068</link><guid isPermaLink="true">https://dev.connect.gt/post/1061068</guid><dc:creator><![CDATA[elmanisero]]></dc:creator><pubDate>Fri, 30 Mar 2012 13:27:20 GMT</pubDate></item></channel></rss>