• Hello

    I have written some code in PHP/MySQL and jQuery that creates a live search suggestion in a search box. The data for the search is populated from a table on my server. I am trying to now use this code as a plugin for WordPress.

    I have read over the codex and done a few tutorials to create a plugin, but I’m still lost when it comes to making my code work in WordPress. Based on my reading I think I need to create a few custom functions that input data into some of WP’s built in functions?

    I know I need to use the $wpdb class to query the database, but I’m not sure how to display all the data. Do I create a custom page type that uses my html/css/js?

    My code is can be seen here. I’m sure it’s not secure at all and fairly sloppy, but this is all pretty new to me still. I’m kind of lost and feel like I’m running in circles so any help would be greatly appreciated.

    Thanks

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Creating plugin from existing code’ is closed to new replies.