Custom Search (1 post)

  1. danclarkeaudio
    Posted 7 years ago #


    I am trying to create a search which will just return images from the nextgen gallery and no posts from the blog. I can achieve the results using the wordpress search but it's either blogs posts or images so I'm thinking I can create an addition search on the blog which just searches the image database. Is this possible? and is it possible to adjust this code to do the job?

    <form method="get" id="searchform" action="<?php include (TEMPLATEPATH . '/search.php'); ?>/">
    <div><input type="text" size="put_a_size_here" name="s" id="s" value="Swatch Search" onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;"/>
    <input type="submit" id="searchsubmit" value="Search" class="btn" />



Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 7 years ago by danclarkeaudio
  • This topic is not resolved
  • WordPress version: 2.7.1