• Good morning,

    I have a question regarding the option of using an image managed with NextGEN plugin to use it as a post thumbnails.

    The thing is that when I read that page, it looks as if the plugin already does that when using the new WP 2.9 function for Post Thumbnails :
    http://gecko-geeks.co.uk/adding-a-wordpress-post-thumbnail/

    But it doesn’t work and when I use the new option of WP 2.9 regarding the post thumbnails, then select the NextGen tab, and follow the instruction, the image doesn’t appear as the post thumbnails on public side (on the admin edit page it is present).

    So I figured that it might come from the fact I use the plugin get-the-image and it doesn’t make the link with the NextGEN gallery ?

    Because, if I use the WP native media manager and select the image as the thumbnail, the image is displayed as a post thumbnail on the public side.

    To get the post thumbnail displayed I use that code (get-the-image):

    <?php get_the_image(array(
    				'custom_key' => array('post_thumbnail','thumbnail'),
    				'default_size' => 'thumbnail',
    				'default_image' => false,
    				'link_to_post' => false,
    				'image_class' => "post_thumbnail",
    				'image_scan' => true,
    			)); ?>

    Finally, if I don’t use the Post Thumbnail WP system, and put a custom field post_thumbnail with the link to the image, the post thumbnails is displayed.

    So my question would be : how can I modify NextGEN plugin or get-the-image plugin in order to get that working.

    Should I change something in my code to get the thumbnails ? Like something related to the post_thumbnail (maybe it should be ngg-post-thumbnail or else, but I’ve tried many things, nothing seems to work)

    Or maybe edit the lib/ post-thumbnail.php file ?

    Or can you tell me how to create automaticaly this custom field with the link to the image when I use NextGEN media manager within the WP Post Thumbnails system ?

    Thank you in advance !

    Kind regards,

    Michel

Viewing 1 replies (of 1 total)
  • Thread Starter bobby

    (@mgkday)

    Ok, I just figured that if I replace

    <?php get_the_image(array(
    				'custom_key' => array('post_thumbnail','thumbnail'),
    				'default_size' => 'thumbnail',
    				'default_image' => false,
    				'link_to_post' => false,
    				'image_class' => "post_thumbnail",
    				'image_scan' => true,
    			)); ?>

    with

    <?php the_post_thumbnail('thumbnail'); ?>

    the images uploaded and added through NextGEN are displayed. So I don’t understand how come get-the-image doesn’t fetch them ! (but I would prefer to use the get-the-image plugin WITH NextGEN)

    So i’m still trying to see wether I try to modify get-the-image or NextGEN plugin to make the link or if I try the WP function add_post_meta($post_id, $meta_key, $meta_value, $unique) to add the custom field automatically after the add within NextGEN (but I don’t know how, and where…)

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: NextGEN Gallery get-the-image] Get Post Thumbnails’ is closed to new replies.