WordPress.org

Ready to get started?Download WordPress

Forums

search result merge get_results to global wp results (2 posts)

  1. SteveStall
    Member
    Posted 2 years ago #

    Hi there,

    In my search.php file I'm using WP Loop to display all search results. Because I'm using a lot of data in custom fields I use wpdb->get_results to retrieve any extra posts.

    I would like to know if it is possible to add the results from wpdb->get_results into global WordPress results so that I can use only one loop and with sintax like have_posts(), the_post() ?

    Any help?

    Thanks

  2. lvl99
    Member
    Posted 1 year ago #

    I've been working on this as well just recently. Asked (and possibly answered) my own question here: http://wordpress.stackexchange.com/questions/50574/use-have-posts-with-array-of-post-results-retrieved-by-wpdb-get-results

Topic Closed

This topic has been closed to new replies.

About this Topic