Skip to content
bonsak edited this page Nov 20, 2012 · 1 revision

filters()

Output a filter form for searching a Pod

public function filters ( 
	$params = null 
)

Parameters

Parameter Type Details
$params string or array Comma-separated list of fields or array of parameters

Additional Parameter Options

Option Type Default Details
fields string or array $params Comma-separated list or array of field names
label string Search Label of filter submit button
action string n/a Action to use in form action=""
search string $_GET[$this->search_var] Search string in search field

Returns

(string) Filter Form HTML

Tutorials and other Resources

Building a Store Locator with proximity search using Pods Contributed by jchristopher Learn how to build a store locator with proximity search

Available Since Version

2.0+

Source File

filters() is located in /pods/classes/Pods.php

See Also