NextGEN Custom Fields
NextGEN Custom FIelds - Display fields on image search results page (5 posts)

  1. bluemalefirst
    Posted 3 years ago #


    I have also installed NextGEN Search Engine.

    When i search for an image, it doesnt have the same template as the gallery template, so i get image results without data from custom fields.

    Any idea on how to integrate <?php echo $image->ngg_custom_fields["CUSTOM_FIELD"]; ?> in the image search results ?


  2. shauno
    Plugin Author

    Posted 3 years ago #

    How are you searching the images? I didn't think NGG had a build in search?
    If it's something custom, then it won't get the custom fields by default, and you will have to do it with a call to <?php echo nggcf_get_field($pid, "Custom Field Name"); ?>
    With $pid being the picture id, and "Custom Field Name" being your custom field name obviously.

    [ Signature moderated. ]

  3. bluemalefirst
    Posted 3 years ago #

    NGG now has an add-on called NextGEN Search Engine. This plug searches your NextGEN gallery picture tags and shows them in your search results using your default wordpress search engine.

    Look here : http://alexrabe.de/2010/01/13/search-for-images/

    The only problem is that it doesnt show custom fields data in the results page.

    Any idea ?

  4. shauno
    Plugin Author

    Posted 3 years ago #

    I can't get it working on my test install. The actual search function seems to find the images, but they get somehow lost before output.

    But it seems the initial call takes a $template argument. Have you tried putting a template name there?

    Once you find where the images are being output, you can call <?php echo nggcf_get_field($pid, "Custom Field Name"); ?> to output custom fields there.

  5. bluemalefirst
    Posted 3 years ago #

    its out of my league :( thanks anyway..

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • NextGEN Custom Fields
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic