Home › Support › Image Store › Searching only the gallery content
Tagged: gallery search
-
AuthorPosts
-
February 24, 2012 at 2:11 am #45012eYSIGHTParticipant
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.
February 27, 2012 at 1:41 pm #45085Xpark MediaKeymasterThe 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
February 29, 2012 at 8:46 am #45122eYSIGHTParticipantThanks 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.
February 29, 2012 at 9:57 am #45123eYSIGHTParticipantOK, 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.
March 1, 2012 at 10:18 am #45167eYSIGHTParticipantHi 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!
-
AuthorPosts
- You must be logged in to reply to this topic.