• Resolved kingco

    (@kingco)


    Hi, I am still trying to get post thumbnails to appear on the home page while using the Sitewide Tags plugin. Just wondering if anyone has found an effective way to do this until its added into the core of multi-site?

    I found this solution on the old MU foum:

    https://mu.www.ads-software.com/forums/topic/18095

    I haven’t been able to make it work. If anyone has, could they post the full source of the sitewide-tags.php file – it would be much appreciated.

    Thanks in advance.

Viewing 4 replies - 16 through 19 (of 19 total)
  • It;s a combo of both – the way SWT doesn’t really pull the images, and the way the theme displays it.

    Yes, writing a small function to handle it usually gets the results you want. tho that functions may be slightly different for every theme.

    (In other words, my usual “it depends”)

    I tried to put this code to my theme, it works.
    <?php echo get_post_meta( $post->ID, ‘thumbnail_html’, true ); ?>

    what i input in the custom field ‘thumbnail_html’ :
    <img src=”https://www.imagelink.jpg&#8221; />

    however. does this mean, the ‘set featured image’ function cannot be used?
    we have to use the custom field only?

    Only on the main site.

    Thread Starter kingco

    (@kingco)

    This seems to be working for me. Checks to see if thumbnail_html exists first and adds a class for styling.

    <?php if ( get_post_meta($post->ID, 'thumbnail_html', true) ) { ?>
    <div class="thumbnail thumbnail "><?php echo get_post_meta($post->ID, 'thumbnail_html', $single = true); ?></div>
    <?php } ?>

    Thanks all for your help on this.

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘Sitewide tags with thumbnail’ is closed to new replies.