Searching only the gallery content

HomeSupportImage StoreSearching only the gallery content

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #45012
    eYSIGHT
    Participant

    Is there a way I can offer serach facilities in image store for only the content of the galleries I create – file name as well as description/caption. I do not want a search messed up by references to blogs or other stuff – only a search on the gallery images.

    #45085
    Xpark Media
    Keymaster

    The plugin currently allows you search the title, caption and content by enabling it on the settings page. It works with the standar website search and it will display all other content.

    If you want to return only galleries all you will have to do is add a standard seach forma add a hidden field with the content type

    <input type="hidden" name="post_type" value="ims_gallery" />

    http://wordpress.org/support/topic/limit-search-results-to-custom-post-type

    #45122
    eYSIGHT
    Participant

    Thanks for the note. I’ve ticked the search box for galleries in the settings – but no show. Not a single return from the galleries. I’ll have a crack at the form code to see how this can work. The search currently only picks up blog or post content – no captions, files names or the meta data stored in the image itself except if the image is then used in the post as a featured image – finds it no problem.

    #45123
    eYSIGHT
    Participant

    OK, double check the tick box is ticked to allow galleries to be serach – just seems to ignore it – sorry. Not the bext PHP programmer so please excuse me but did this with the search form and got no results at all:

    <form role="search" method="get" id="searchform" action="”>

    By the way you refer to th gallery file as ims_gallery. When you install it the file is _imsgallery – tried renaming this to your note but no luck. Any thoughts? Thanks.

    #45167
    eYSIGHT
    Participant

    Hi Seraching now working once I sorted the file structure out. The problem has been th results not the search. I am trialing IMS as an image library. So the results have to be as a line item not just a reference to the main gallery header – how would I change the search results form to get a list of all the image files found under the serach subject? Crack this and you’ve got a big market opportunity i can tell you!

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.