Matching search terms, getting back post IDs
-
What is the best way to use WP’s built-in search functionality to pass some keywords to WP and get post IDs in return?
I want to detect the keywords users typed to arrive at my blog from a search engine, search the database with WP’s search functions, and get in return a list of post IDs. With these, I could then choose to display the list of post titles as links to the posts themselves.
I am not interested in using the related posts plugin.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Matching search terms, getting back post IDs’ is closed to new replies.