GD Custom Posts And Taxonomies Tools
custom functions
gdtt_get_taxonomy | ( | ) |
Get the taxonomy on the taxonomy term page.
- Returns:
- object Taxonomy or null if not on taxonomy term page
gdtt_get_term | ( | ) |
Get the term on the taxonomy term page.
- Returns:
- object Term or null if not on taxonomy term page
gdtt_get_term_description | ( | ) |
Get description for the term.
- Returns:
- string Term description
gdtt_term_title | ( | ) |
Display term title.
gdtt_term_description | ( | ) |
Display term description.
gdtt_get_term_title | ( | $ |
with_tax = false
|
) |
Get title for the term.
- Parameters:
-
bool $with_tax Inlcude taxonomy label as prefix
- Returns:
- string Term title
gdtt_posts_term_filter | ( | $ |
terms = array() ,
|
|
$ |
result = "count"
|
|||
) |
Filter posts using taxonomy terms.
- Parameters:
-
array $terms terms to search for in different taxonomies string what type of result to generate: count, id, post
- Returns:
- array results mixed