• hey there,

    after days of not having a lucid moment on this i though maybe you can help.

    i’m trying to extrend my wordpress search results page. when searching it should first show the fitting posts from my blog and then search an api to find more relevant stuff there and display these results as well.

    this is working fine so far. but the bad thing is of course these external search results don’t come out of the loop and so they are not splitted on several result pages.

    how can i get these results to be shown just like normal posts without adding them to the database? could i maybe add them somehow in the $posts variable or add them to the search results already in query php? how can i generally show “virtual posts” in the loop?

Viewing 1 replies (of 1 total)
  • Thread Starter aushilfe444

    (@aushilfe444)

    so if anybody is interested, it is possible to just inject fake posts to $wp_query. i’ve got it working so far but now pagination is out of order..

    for now i added a “handmade” pagination but if anybody know why it doesn’t work i’ll be glad to know.

Viewing 1 replies (of 1 total)
  • The topic ‘extending wordpress search’ is closed to new replies.