Selecting Card Display Style
Allows the use of one function where we can then select a different template when needed
| Since | |
|---|---|
1.0.0 |
|
3.4.4 |
Removed default template check for loop templates as this caused incorrect templates to load in some cases. |
3.4.23 |
Removed compatibility template for loop as we are passing the class using post_class filter. |
3.4.36 |
New: Additional action support for listing templates. Actions are: epl_loop_template_{post_type}, epl_loop_template_listing. |
3.4.38 |
New: Additional parameters default to pass the default template which will be used if the template is not found. |
3.5 |
New: Additional args for custom template action : epl_loop_template_{$post_type}, epl_loop_template. |
| Parameters | |||
|---|---|---|---|
string
|
$template = '' |
The template. |
# |
string
|
$default_value = 'default' |
Optional template name. |
# |