Hello! I tried using meta_query but I'm having difficulties. It's been days and I'm confused. I've been trying and trying but I couldn't make it work. =(
This is the recent code that I did.
<form method="get" class="" action=""> <input name="type" value="books" type="hidden"> <input class="" name="search" value="" type="text"> <input class="" value="Search" type="submit"> </form> <?php $params = array( 'orderby' => 'book_year DESC', 'limit' => 2, 'meta_query' => array( 'relation' => 'AND', array( 'key' => 'book_author', 'value' => '$s', ), ) ); $pod_books = pods( 'books' ); echo $pod_books->find( $params )->template( 'book_detail' ); echo $pod_books->pagination(); ?>
I'm going crazy. =(
All I want to do is be able to search my pod's custom fields with my search form and have the results displayed in a pods template.
Please please please please please please please please help me... I've tried a lot of things that I've found through googling and reading the forums but so far I can't make it work.