Create custom search forms in WordPress

21 Comments

  1. Sebastien

    Nice article, there is a mistake on the first line, it should be search-artwork.php for the template part otherwise it wont load when called.

    1. Thanks Sebastien, I\’ve updated the post to reflect this. Since I build on Hybrid Core, the modified template hierarchy requires the naming convention that I used. It would probably be better to write the tip from the point of view of non-Hybrid Core users, but I\’ve used it for so long that I sometimes can\’t separate it from standard WordPress development.

      1. Sebastien

        Thanks for the reply, i didn\’t know about hybrid core but i will look into it. Might come in useful

  2. Barni

    Hi,
    Thanks for the tip. How can I create a page that will show the search bar and query a custom post type I created?

  3. Chinmay

    Your article is excellent but it search only one field. I want to search 2 field of a post type how can i do?

    1. Can you elaborate Chinmay? Not sure what you mean by searching \’2 field of a post type.\’

  4. meenu

    Hello. sir Thanks for your valuable tips. can you please visit my site http://apnojaipur.com and can help me to create and embed the exact search form and search code to meet my needs. Thanking you in advance.

    1. Sure thing meenu, I\’ll PM you and we can get this solved for you.

  5. Naturalogy.Org

    I also had chest and coronary heart problems, and I used
    to be highly careworn. I consulted many docs from Taiwan and
    USA.

    1. If you were highly careworn at one point I’m truly sorry to hear that.

  6. imvu credit hack that Works 2012

    Right this moment social networking web sites are very well-known and most of them spend time on one of these social network sites daily.
    Do you want to see how I get fantastic looking website up and running that start generating revenue for me almost instantly.

    So, be confident and remember that you can make money online with
    your knowledge or skills that are better than others.

    1. Your insight is totally worthless. Sorry. Wait, no not sorry.

  7. Dorie

    Make a complete list of gold-making quests, how to complete and their corresponding rewards.
    Do you want to see how I get fantastic looking website
    up and running that start generating revenue for me almost instantly.

    So, be confident and remember that you can make money online with your knowledge
    or skills that are better than others.

    1. Dorie you have a cute name but have no idea how to hold a conversation.

  8. top ppd websites

    Yes! Finally someone writes about best bitcoin ptc sites.

    1. Bitcoin? WTF are you on about?

  9. married cheating website

    No matter if some one searches for his essential thing, thus he/she desires to be available that in detail,
    thus that thing iis maintained over here.

    1. Might be the most unintelligible thing I\’ve ever heard.

  10. No it doesn\’t. What are you talking about? Did you even read the article?

  11. DJ

    Great stuff Bryan! Sadly, im having a bad case of “The n00bs” right now, haha.

    I’d love a custom search form with this post type: wprss_feed_item. So, using the code from your tutorial, would i simply do the following?

    Create a new template file and throw it under my theme directory? (correct me if im wrong about this location)
    Paste your code almost word-for-word, replacing only value=artworks with wprss_feed_item?

    And finally the most important part is to display said form in a widget (either as a proprietary widget or through a shortcode)

    I feel like i ALMOST have it working, but….it just wont work.
    Enjoy your week!

    Elvis

  12. NIHAL

    I need a help in customizing my search box
    as I am using plugin “Search Everything” but it does not give the desired output

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.