Custom Search Results

  • Abhishek
    Newbie 0 points
    July 5, 2016 at 12:52 pm

    Hello all,

    If I know how to get the post id’s (or any other postmeta) for a subset of listings, how would I use this information to create a search results page?

    EX: I have a date as a custom field, I’d like to display all results that match a specific day of the year.

    I know how to get all the listings from the database, and filter them down till they match the day, but I’m not sure how to “gather” these and send them to the index page.

    I appreciate any help or tips with this matter.

  • Hemanta Chakladar
    Hemanta Chakladar
    Super Guru 1,710 points
    July 5, 2016 at 3:01 pm

    You can use WP_Query for post using the post meta filter and use search result template while have post.

Viewing 2 posts - 1 through 2 (of 2 total)

New Business Themes for WordPress 2020

Start your new website today!

View Business Themes