Sebsemillia
Sebsemillia

Reputation: 9486

Add a custom database table to the wordpress search

I have a custom database table for a plugin I wrote for wordpress. Now I want to integrate this table into the wordpress search, since yet the wordpress search shows me just results for the data entered via the core CMS of course.

Preferably I would like to avoid altering the WP core to make this possible.

So is there any way to make this possible or do I have to write my own search function to search and display results for this custom table data?

Upvotes: 2

Views: 3864

Answers (1)

avexdesigns
avexdesigns

Reputation: 499

This absolute answer for this, would be pretty custom, depending on what you want to do. But if you understand SQL and databases, this article would be very useful.

http://codex.wordpress.org/Function_Reference/wpdb_Class

Upvotes: 3

Related Questions