How to make pods search form search custom fields?
-
Hello! I’m displaying my pod items through this code
<?php $params = array( 'orderby' => 'book_year DESC', 'limit' => 10, ); $pod_books = pods( 'books' ); echo $pod_books->filters(); echo $pod_books->find( $params )->template( 'book_detail' ); echo $pod_books->pagination(); ?>
The search form only searches for texts on the post title. ??
How do I edit the code so that the search form will search the text through all or any of the custom fields on the pod as well?What should I be referencing in the pod codex?
For example, I have a custom field named book_author in my pod. How do I allow the pods search form to search this custom field as well?
Please help.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to make pods search form search custom fields?’ is closed to new replies.