• I posted this on Alex’s site but have not found an answer… any suggestions are appreciated…

    I recently installed the NGG “Search for Images” Function to my gallery and find it has the oddest results. The result of a search gives the relevant images but the images don’t link to their pages…. or, rather, they do but the page is always some random text page or blog post. For example: the search http://tenthousandvisions.com/?s=mind results in four images. However, when clicked on they all show the content of the page “Events” even tho their URL is the correct picture/gallery page. Note that I am not using any effects and instead am using the imagebrowser.

    This happens with all images searched. They always show seemingly random content – a page, a blog post, etc – from somewhere else while still displaying the correct URL in the browser. Can anyone tell me why this might be?

    Everything else has been installed correctly as well. Below is the content for my ngg search page. Note that I took out all of the general search info so as to just return results from NGG.

    <?php get_header(); ?>
    <h1 class=”pagetitle”>Search Results<?php get_breadcrumbs(); ?></h1>
    <div id=”container3″>
    <div class=”entry blog”>
    <?php if (have_posts()) : ?>
    <?php if ( function_exists( ‘ngg_images_results’ ) && have_images() ) : ?>
    <h2 class=”pagetitle”>Image Search Results</h2>
    <?php ngg_images_results(); ?>
    <?php endif; ?>
    <?php elseif ( function_exists( ‘ngg_images_results’ ) && have_images() ) : ?>
    <h2 class=”pagetitle”>Image Search Results</h2>
    <?php ngg_images_results(); ?>
    <?php else : ?>
    <h2 class=”center”>No posts found. Try a different search?</h2>
    <?php get_search_form(); ?>
    <?php endif; ?>
    </div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>’

Viewing 2 replies - 1 through 2 (of 2 total)
  • Same problem here.

    Everything is linked correctly but when click on the image it gets redirected to a different page.

    Any ideas on how to fix it? Michael, did you find a solution?

    Thread Starter Michael D

    (@michael-divine)

    I never found a solution to this nor did any one offer one…

    I’d love to know how to get it working correctly…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘nextgen-gallery returning incorrect search results’ is closed to new replies.