Working with terms and taxonomies

Shortcode: aw2_query_terms

Query Terms of a taxonomy

Parameters

——————-


id: id of the Query. Defaults to ‘resultset’. aw2_loop also defaults to ‘resultset’
taxonomy: taxonomy to query


conditions: Use any of the condition parameters in aw2_if. Only executes if the conditions match


args: The content is a pure json object equivalent to args
http://codex.wordpress.org/Function_Reference/get_terms


Note: use the fields argument to get only the data which is required


main: if you only want one value from the collection then you can directly put the parameters of aw2_collection to get that value



set_param='': defaults to empty. the variable to store the return value in. If empty then will throw out the value


separator: The separator to collapse the field to return. Defaults to comma.

Examples

—————–


Shortcode: aw2_query_term

Query One Term of a taxonomy.


See http://codex.wordpress.org/Function_Reference/get_term_by

Parameters

——————-


query_by: See http://codex.wordpress.org/Function_Reference/get_term_by for values


query_value: Value for the query by.If query_value is not specified then defaults to current user


id: defaults to default_item . aw2_value also defaults to the same.


taxonomy: the taxonomy to query


main: the field to return.Use this when you just want one field. If you want multiple fields then remove this parameter and later access using [aw2_value].


set_param='': defaults to empty. the variable to store the return value in. If empty then will throw out the value


cond: any If conditions. If a condition is passed then only runs if the condition is met

Examples

—————–


Shortcode: [aw2_delete_term]

To delete a taxonomy term

Example

—————–