NextGEN Gallery
NextGen + Tinthumb function no featured images showing (2 posts)

  1. Fabian Krenzler
    Posted 5 years ago #

    I have problems with the thumbnails not showing in combination with a theme that is using the tinthumb function.

    I am selecting a featured image for a post from the nextgen and it is not showing. If I select it from the mediasection it is showing.

    After talking to the theme developer he told me to talk to you and sended me the following:

    The code we use is correct, and uses the function that wordpress uses. Please post a question for the next gen creators. You have give them this code

    <?php if ( has_post_thumbnail() ): ?>
        <?php $thumbnail_src = wp_get_attachment_url( get_post_thumbnail_id($post->ID ) ); ?>
        <?php $website_url = get_bloginfo('wpurl'); ?>
        <?php $thumbnail_src = str_replace($website_url,'', $thumbnail_src); ?>
        <a>" title="<?php the_title();?>">
            <img src="<?php echo get_bloginfo('template_directory');?>/includes/timthumb.php?src=<?php echo $thumbnail_src; ?>&h=140&w=280&zc=1&q=100" alt="<?php the_title(); ?>" />
    <?php endif; ?>

    [Please post code snippets between backticks or use the code button.]

    Can somebody help?


  2. RoamFree
    Posted 4 years ago #

    The above TimThumb code can't handle NGG image IDs (ie, "ngg-1") because wp_get_attachment() refuses to activate its filters when the image ID is not found. So NGG can't add a filter to handle NGG images.

    The theme can be patched with code similar to what is in another comment.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • NextGEN Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.