Title: Search Plugin Development
Last modified: March 8, 2017

---

# Search Plugin Development

 *  [wpdebug](https://wordpress.org/support/users/wpdebug/)
 * (@wpdebug)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/search-plugin-development/)
 * Im newbie in plugin development. Please help me or guide me some basic codes 
   for plugin development.
 * I want connect my table to search box.
 * Thanks

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/search-plugin-development/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/search-plugin-development/page/2/?output_format=md)

 *  [amadeu](https://wordpress.org/support/users/amapeu/)
 * (@amapeu)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/search-plugin-development/#post-7046177)
 * [This is a good starting point](https://codex.wordpress.org/Writing_a_Plugin).
 *  [v123shine](https://wordpress.org/support/users/v123shine/)
 * (@v123shine)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/search-plugin-development/#post-7046179)
 * Maybe you can find the solution in here:
    – [https://codex.wordpress.org/Writing_a_Plugin](https://codex.wordpress.org/Writing_a_Plugin)–
   [https://scotch.io/tutorials/how-to-build-a-wordpress-plugin-part-1](https://scotch.io/tutorials/how-to-build-a-wordpress-plugin-part-1)
 *  Thread Starter [wpdebug](https://wordpress.org/support/users/wpdebug/)
 * (@wpdebug)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/search-plugin-development/#post-7046185)
 * [@amapeu](https://wordpress.org/support/users/amapeu/) and [@v123shine](https://wordpress.org/support/users/v123shine/)
   thanks to help me. I know basic template for plugin development. My actually 
   problem is connect theme search box with table wp-article. in form action i could
   not understand meaning codes.
 * <?php echo esc_url( home_url( ‘/’ ) ); ?>
 *  Thread Starter [wpdebug](https://wordpress.org/support/users/wpdebug/)
 * (@wpdebug)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/search-plugin-development/#post-7046187)
 * my form codes
 * <form role=”search” method=”get” class=”search-form” action=”<?php echo esc_url(
   home_url( ‘/’ ) ); ?>”>
    <label> <span class=”screen-reader-text”><?php echo 
   _x( ‘Search for:’, ‘label’, ‘twentysixteen’ ); ?></span> <input type=”search”
   class=”search-field” placeholder=”<?php echo esc_attr_x( ‘Search …’, ‘placeholder’,‘
   twentysixteen’ ); ?>” value=”<?php echo get_search_query(); ?>” name=”s” title
   =”<?php echo esc_attr_x( ‘Search for:’, ‘label’, ‘twentysixteen’ ); ?>” /> </
   label> <button type=”submit” class=”search-submit”><span class=”screen-reader-
   text”><?php echo _x( ‘Search’, ‘submit button’, ‘twentysixteen’ ); ?></span></
   button> </form>
 *  [amadeu](https://wordpress.org/support/users/amapeu/)
 * (@amapeu)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/search-plugin-development/#post-7046188)
 * I think there is no wp-article table, at least in the wp database. What do you
   mean by wp-article table?
    `esc_url();` cleans a URL. [More info](https://codex.wordpress.org/Function_Reference/esc_url)
 *  Thread Starter [wpdebug](https://wordpress.org/support/users/wpdebug/)
 * (@wpdebug)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/search-plugin-development/#post-7046190)
 * i create wp-article table and search box search data from it if not found then
   store data in wp-newsearch table
 *  [amadeu](https://wordpress.org/support/users/amapeu/)
 * (@amapeu)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/search-plugin-development/#post-7046194)
 * Could you specify more details? What’s the objective of this plugin?
 *  Thread Starter [wpdebug](https://wordpress.org/support/users/wpdebug/)
 * (@wpdebug)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/search-plugin-development/#post-7046197)
 * when user search any keyword in search box. If article available in WP-ARTICLE
   table then display other wise new keyword store in second table WP-NEWKEYWORD
   table or in admin dashboard admin can watch how many search come in day, week
   or month. how many successful.
 *  Thread Starter [wpdebug](https://wordpress.org/support/users/wpdebug/)
 * (@wpdebug)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/search-plugin-development/#post-7046203)
 * could you help how develop this plugins
 *  [amadeu](https://wordpress.org/support/users/amapeu/)
 * (@amapeu)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/search-plugin-development/#post-7046208)
 * I could only recommend this Codex’s Page.
 * [https://codex.wordpress.org/Creating_Tables_with_Plugins](https://codex.wordpress.org/Creating_Tables_with_Plugins)
 *  Thread Starter [wpdebug](https://wordpress.org/support/users/wpdebug/)
 * (@wpdebug)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/search-plugin-development/#post-7046210)
 * i’ve read all this and generate codes for auto generate tables. I only stuck 
   here how i attach created tables to search box.
 * action=”<?php echo esc_url( home_url( ‘/’ ) ); ?>
 * what i assign in action i don’t know!!!
 *  Thread Starter [wpdebug](https://wordpress.org/support/users/wpdebug/)
 * (@wpdebug)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/search-plugin-development/#post-7046211)
 * I can manage further if search box connect to tables.
 *  [dale3h](https://wordpress.org/support/users/dale3h/)
 * (@dale3h)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/search-plugin-development/#post-7046322)
 * Hi [@wpdebug](https://wordpress.org/support/users/wpdebug/), it is my understanding
   that you would like to map certain search keywords to specific posts.
 * Examples:
 * * User searches for “bob” and is automatically redirected to the post titled “
   Back on the Burrito Train” (based on the administrator previously linking this
   keyword to this post)
    * User searches for “joe” and is automatically redirected
   to the post “The Dirt of Blueberry Hill” * User searches for “jim” and is automatically
   redirected to the post “Beef Jerky – Spice Up Your Life”
 * Is my understanding correct for the plugin that you would like to develop?
 *  Thread Starter [wpdebug](https://wordpress.org/support/users/wpdebug/)
 * (@wpdebug)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/search-plugin-development/#post-7046334)
 * yes you are right. but if not found then store that keyword in new table
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [10 years, 3 months ago](https://wordpress.org/support/topic/search-plugin-development/#post-7046349)
 * [@wpdebug](https://wordpress.org/support/users/wpdebug/), Please don’t create
   a new thread on the same topic. We don’t do urgent support here because we’re
   all volunteers that are helping out of our spare time.

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/search-plugin-development/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/search-plugin-development/page/2/?output_format=md)

The topic ‘Search Plugin Development’ is closed to new replies.

## Tags

 * [search plugin](https://wordpress.org/support/topic-tag/search-plugin/)
 * [wpdb](https://wordpress.org/support/topic-tag/wpdb/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 17 replies
 * 5 participants
 * Last reply from: [dale3h](https://wordpress.org/support/users/dale3h/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/search-plugin-development/page/2/#post-7046384)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
