Beans & Rice
My daughter recently told me this was on her top 5 list of favourite meals. This is fantastic because beans and rice are so easy to make and one of the most affordable meals on our roster. This is a staple meal eaten in different variations around the world, but this version has more of a Mexican influence.
Serves 4
2 cups brown rice
4 cups cooked or canned beans (e.g. pinto, black, kidney)
2 Tbsp olive oil
4 cloves garlic, minced
1 Tbsp ground cumin
2 tsp soy sauce
Toppings: shredded cabbage or lettuce, sliced avocado, chopped tomato, sliced bell pepper, minced jalapeno, hot sauce, grated or crumbled cheese, Greek yogurt, corn chips
Cook rice according to package directions. Meanwhile, drain the beans and heat a large skillet on medium low heat. Add oil then the garlic and cumin and cook for 1-2 minutes stirring continually until the garlic is just turning golden, not burning. Add the beans and stir while mashing with a wooden spoon or masher. Add water to prevent the beans from sticking and to help them reach a spoonable consistency (I like to keep some texture so I don’t fully mash all the beans, just enough to bind it all together and enough water so it’s not too thick). Add the soy sauce and adjust seasonings to taste.
Serve a bowl of rice, topped with beans and let everyone add their own toppings. Corn chips are yummy alongside, as is a coleslaw!
Recipe by Nicole Fetterly, RD
Share This Post
- →$post->category array(4)
- →Timber\Term(16)
- contents
- Static class properties (1)
- Available methods (30)
- public id -> integer53
- public ID -> integer53
- public object_type -> string(4) "term"
- public PostClass -> string(11) "Timber\Post"
- public TermClass -> string(4) "Term"
- public _children -> NULL
- public name -> string(6) "Dinner"
- public taxonomy -> string(15) "recipe_category"
- public term_id -> integer53
- public slug -> string(6) "dinner"
- public term_group -> integer0
- public term_taxonomy_id -> integer53
- public parent -> integer0
- public count -> integer33
- public filter -> string(3) "raw"
- public term_order -> string(1) "0"
- public $representation :: string(4) "term"
- →public static from($tid, $taxonomy) -> static
@param $tid @param $taxonomy @return static Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:91
- →public __call($field, $args) -> mixed
This is helpful for twig to return properties and methods see: https://github.com/fabpot/Twig/issues/2 @return mixed Inherited from Timber\Core Defined in <ROOT>wp-content/plugins/timber-library/lib/Core.php:26
- →public __construct($tid = NULL, $tax = "")
@param int $tid @param string $tax Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:68
- →public __get($field) -> mixed
This is helpful for twig to return properties and methods see: https://github.com/fabpot/Twig/issues/2 @return mixed Inherited from Timber\Core Defined in <ROOT>wp-content/plugins/timber-library/lib/Core.php:35
- →public __isset($field) -> boolean
@return boolean Inherited from Timber\Core Defined in <ROOT>wp-content/plugins/timber-library/lib/Core.php:15
- →public __toString() -> string
@return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:81
- →public can_edit() -> bool
Can you edit this post/term/user? Well good for you. You're no better than me. @example ```twig {% if post.can_edit %} <a href="{{ post.edit_link }}">Edit</a> {% endif %} ``` ```html <a href="http://example.org/wp-admin/edit.php?p=242">Edit</a> ``` @return bool Inherited from Timber\Core Defined in <ROOT>wp-content/plugins/timber-library/lib/Core.php:100
- →public children()
@api @return array Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:361
- →public description()
@api @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:369
- →public edit_link()
@api @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:383
- →public get_children()
@internal @return array Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:331
- →public get_edit_url()
@internal @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:229
- →public get_field($field_name) -> mixed
@param string $field_name @return mixed Inherited from Timber\Core Defined in <ROOT>wp-content/plugins/timber-library/lib/Core.php:125
- →public get_link() -> string
@internal @deprecated since 1.0 @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:265
- →public get_meta_field($field_name) -> string
@internal @param string $field_name @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:238
- →public get_method_values() -> array
@return array Inherited from Timber\Core Defined in <ROOT>wp-content/plugins/timber-library/lib/Core.php:115
- →public get_path() -> string
@internal @deprecated since 1.0 @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:256
- →public get_posts($numberposts_or_args = 10, $post_type_or_class = any, $post_class = "") -> array|bool|null
Get posts that have the current term assigned. @internal @param int|array $numberposts_or_args Optional. Either the number of posts or an array of arguments for the post query that this method is going. to perform. Default `10`. @param string $post_type_or_class Optional. Either the post type to get or the name of post class to use for the returned posts. Default `any`. @param string $post_class Optional. The name of the post class to use for the returned posts. Default `Timber\Post`. @return array|bool|null Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:283
- →public import($info, $force = false)
Takes an array or object and adds the properties to the parent object @example ```php $data = array('airplane' => '757-200', 'flight' => '5316'); $post = new Timber\Post() $post->import(data); echo $post->airplane; //757-200 ``` @param array|object $info an object or array you want to grab data from to attach to the Timber object Inherited from Timber\Core Defined in <ROOT>wp-content/plugins/timber-library/lib/Core.php:59
- →public link() -> string
Returns a full link to the term archive page like `http://example.com/category/news` @api @example ```twig See all posts in: <a href="{{ term.link }}">{{ term.name }}</a> ``` @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:398
- →public meta($field_name) -> string
Retrieves and outputs meta information stored with a term. This will use both data stored under (old) ACF hacks and new (WP 4.6+) where term meta has its own table. If retrieving a special ACF field (repeater, etc.) you can use the output immediately in Twig — no further processing is required. @api @param string $field_name @example ```twig <div class="location-info"> <h2>{{ term.name }}</h2> <p>{{ term.meta('address') }}</p> </div> ``` @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:421
- →public path() -> string
Returns a relative link (path) to the term archive page like `/category/news` @api @example ```twig See all posts in: <a href="{{ term.path }}">{{ term.name }}</a> ``` @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:435
- →public posts($numberposts_or_args = 10, $post_type_or_class = any, $post_class = "") -> array|bool|null
Gets posts that have the current term assigned. @api @example ```twig <h4>Recent posts in {{ term.name }}</h4> <ul> {% for post in term.posts(3, 'post') %} <li> <a href="{{ post.link }}">{{ post.title }}</a> </li> {% endfor %} </ul> ``` If you need more control over the query that is going to be performed, you can pass your custom query arguments in the first parameter. ```twig <h4>Our branches in {{ region.name }}</h4> <ul> {% for branch in region.posts({ posts_per_page: -1, orderby: 'menu_order' }, 'branch', 'Branch') %} <li> <a href="{{ branch.link }}">{{ branch.title }}</a> </li> {% endfor %} </ul> ``` @param int|array $numberposts_or_args Optional. Either the number of posts or an array of arguments for the post query that this method is going. to perform. Default `10`. @param string $post_type_or_class Optional. Either the post type to get or the name of post class to use for the returned posts. Default `any`. @param string $post_class Optional. The name of the post class to use for the returned posts. Default `Timber\Post`. @return array|bool|null Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:487
- →public title()
@api @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:495
- →public update($key, $value)
@param string $key @param mixed $value Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:348
- →protected static get_tid($tid) -> int|array
@internal @param int $tid @return int|array Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:199
- →protected get_term($tid) -> mixed
@internal @param int|object|array $tid @return mixed Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:161
- →protected get_term_from_query()
@internal @return integer Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:108
- →protected get_term_meta($tid) -> array
@internal @param int $tid @return array Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:150
- →protected init($tid)
@internal @param int $tid Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:125
- →Timber\Term(16)
- contents
- Static class properties (1)
- Available methods (30)
- public id -> integer54
- public ID -> integer54
- public object_type -> string(4) "term"
- public PostClass -> string(11) "Timber\Post"
- public TermClass -> string(4) "Term"
- public _children -> NULL
- public name -> string(5) "Lunch"
- public taxonomy -> string(15) "recipe_category"
- public term_id -> integer54
- public slug -> string(5) "lunch"
- public term_group -> integer0
- public term_taxonomy_id -> integer54
- public parent -> integer0
- public count -> integer26
- public filter -> string(3) "raw"
- public term_order -> string(1) "0"
- public $representation :: string(4) "term"
- →public static from($tid, $taxonomy) -> static
@param $tid @param $taxonomy @return static Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:91
- →public __call($field, $args) -> mixed
This is helpful for twig to return properties and methods see: https://github.com/fabpot/Twig/issues/2 @return mixed Inherited from Timber\Core Defined in <ROOT>wp-content/plugins/timber-library/lib/Core.php:26
- →public __construct($tid = NULL, $tax = "")
@param int $tid @param string $tax Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:68
- →public __get($field) -> mixed
This is helpful for twig to return properties and methods see: https://github.com/fabpot/Twig/issues/2 @return mixed Inherited from Timber\Core Defined in <ROOT>wp-content/plugins/timber-library/lib/Core.php:35
- →public __isset($field) -> boolean
@return boolean Inherited from Timber\Core Defined in <ROOT>wp-content/plugins/timber-library/lib/Core.php:15
- →public __toString() -> string
@return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:81
- →public can_edit() -> bool
Can you edit this post/term/user? Well good for you. You're no better than me. @example ```twig {% if post.can_edit %} <a href="{{ post.edit_link }}">Edit</a> {% endif %} ``` ```html <a href="http://example.org/wp-admin/edit.php?p=242">Edit</a> ``` @return bool Inherited from Timber\Core Defined in <ROOT>wp-content/plugins/timber-library/lib/Core.php:100
- →public children()
@api @return array Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:361
- →public description()
@api @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:369
- →public edit_link()
@api @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:383
- →public get_children()
@internal @return array Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:331
- →public get_edit_url()
@internal @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:229
- →public get_field($field_name) -> mixed
@param string $field_name @return mixed Inherited from Timber\Core Defined in <ROOT>wp-content/plugins/timber-library/lib/Core.php:125
- →public get_link() -> string
@internal @deprecated since 1.0 @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:265
- →public get_meta_field($field_name) -> string
@internal @param string $field_name @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:238
- →public get_method_values() -> array
@return array Inherited from Timber\Core Defined in <ROOT>wp-content/plugins/timber-library/lib/Core.php:115
- →public get_path() -> string
@internal @deprecated since 1.0 @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:256
- →public get_posts($numberposts_or_args = 10, $post_type_or_class = any, $post_class = "") -> array|bool|null
Get posts that have the current term assigned. @internal @param int|array $numberposts_or_args Optional. Either the number of posts or an array of arguments for the post query that this method is going. to perform. Default `10`. @param string $post_type_or_class Optional. Either the post type to get or the name of post class to use for the returned posts. Default `any`. @param string $post_class Optional. The name of the post class to use for the returned posts. Default `Timber\Post`. @return array|bool|null Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:283
- →public import($info, $force = false)
Takes an array or object and adds the properties to the parent object @example ```php $data = array('airplane' => '757-200', 'flight' => '5316'); $post = new Timber\Post() $post->import(data); echo $post->airplane; //757-200 ``` @param array|object $info an object or array you want to grab data from to attach to the Timber object Inherited from Timber\Core Defined in <ROOT>wp-content/plugins/timber-library/lib/Core.php:59
- →public link() -> string
Returns a full link to the term archive page like `http://example.com/category/news` @api @example ```twig See all posts in: <a href="{{ term.link }}">{{ term.name }}</a> ``` @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:398
- →public meta($field_name) -> string
Retrieves and outputs meta information stored with a term. This will use both data stored under (old) ACF hacks and new (WP 4.6+) where term meta has its own table. If retrieving a special ACF field (repeater, etc.) you can use the output immediately in Twig — no further processing is required. @api @param string $field_name @example ```twig <div class="location-info"> <h2>{{ term.name }}</h2> <p>{{ term.meta('address') }}</p> </div> ``` @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:421
- →public path() -> string
Returns a relative link (path) to the term archive page like `/category/news` @api @example ```twig See all posts in: <a href="{{ term.path }}">{{ term.name }}</a> ``` @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:435
- →public posts($numberposts_or_args = 10, $post_type_or_class = any, $post_class = "") -> array|bool|null
Gets posts that have the current term assigned. @api @example ```twig <h4>Recent posts in {{ term.name }}</h4> <ul> {% for post in term.posts(3, 'post') %} <li> <a href="{{ post.link }}">{{ post.title }}</a> </li> {% endfor %} </ul> ``` If you need more control over the query that is going to be performed, you can pass your custom query arguments in the first parameter. ```twig <h4>Our branches in {{ region.name }}</h4> <ul> {% for branch in region.posts({ posts_per_page: -1, orderby: 'menu_order' }, 'branch', 'Branch') %} <li> <a href="{{ branch.link }}">{{ branch.title }}</a> </li> {% endfor %} </ul> ``` @param int|array $numberposts_or_args Optional. Either the number of posts or an array of arguments for the post query that this method is going. to perform. Default `10`. @param string $post_type_or_class Optional. Either the post type to get or the name of post class to use for the returned posts. Default `any`. @param string $post_class Optional. The name of the post class to use for the returned posts. Default `Timber\Post`. @return array|bool|null Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:487
- →public title()
@api @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:495
- →public update($key, $value)
@param string $key @param mixed $value Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:348
- →protected static get_tid($tid) -> int|array
@internal @param int $tid @return int|array Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:199
- →protected get_term($tid) -> mixed
@internal @param int|object|array $tid @return mixed Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:161
- →protected get_term_from_query()
@internal @return integer Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:108
- →protected get_term_meta($tid) -> array
@internal @param int $tid @return array Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:150
- →protected init($tid)
@internal @param int $tid Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:125
- →Timber\Term(16)
- contents
- Static class properties (1)
- Available methods (30)
- public id -> integer55
- public ID -> integer55
- public object_type -> string(4) "term"
- public PostClass -> string(11) "Timber\Post"
- public TermClass -> string(4) "Term"
- public _children -> NULL
- public name -> string(28) "Plant-based & Vegetarian"
- public taxonomy -> string(15) "recipe_category"
- public term_id -> integer55
- public slug -> string(22) "plant-based-vegetarian"
- public term_group -> integer0
- public term_taxonomy_id -> integer55
- public parent -> integer0
- public count -> integer30
- public filter -> string(3) "raw"
- public term_order -> string(1) "0"
- public $representation :: string(4) "term"
- →public static from($tid, $taxonomy) -> static
@param $tid @param $taxonomy @return static Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:91
- →public __call($field, $args) -> mixed
This is helpful for twig to return properties and methods see: https://github.com/fabpot/Twig/issues/2 @return mixed Inherited from Timber\Core Defined in <ROOT>wp-content/plugins/timber-library/lib/Core.php:26
- →public __construct($tid = NULL, $tax = "")
@param int $tid @param string $tax Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:68
- →public __get($field) -> mixed
This is helpful for twig to return properties and methods see: https://github.com/fabpot/Twig/issues/2 @return mixed Inherited from Timber\Core Defined in <ROOT>wp-content/plugins/timber-library/lib/Core.php:35
- →public __isset($field) -> boolean
@return boolean Inherited from Timber\Core Defined in <ROOT>wp-content/plugins/timber-library/lib/Core.php:15
- →public __toString() -> string
@return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:81
- →public can_edit() -> bool
Can you edit this post/term/user? Well good for you. You're no better than me. @example ```twig {% if post.can_edit %} <a href="{{ post.edit_link }}">Edit</a> {% endif %} ``` ```html <a href="http://example.org/wp-admin/edit.php?p=242">Edit</a> ``` @return bool Inherited from Timber\Core Defined in <ROOT>wp-content/plugins/timber-library/lib/Core.php:100
- →public children()
@api @return array Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:361
- →public description()
@api @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:369
- →public edit_link()
@api @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:383
- →public get_children()
@internal @return array Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:331
- →public get_edit_url()
@internal @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:229
- →public get_field($field_name) -> mixed
@param string $field_name @return mixed Inherited from Timber\Core Defined in <ROOT>wp-content/plugins/timber-library/lib/Core.php:125
- →public get_link() -> string
@internal @deprecated since 1.0 @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:265
- →public get_meta_field($field_name) -> string
@internal @param string $field_name @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:238
- →public get_method_values() -> array
@return array Inherited from Timber\Core Defined in <ROOT>wp-content/plugins/timber-library/lib/Core.php:115
- →public get_path() -> string
@internal @deprecated since 1.0 @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:256
- →public get_posts($numberposts_or_args = 10, $post_type_or_class = any, $post_class = "") -> array|bool|null
Get posts that have the current term assigned. @internal @param int|array $numberposts_or_args Optional. Either the number of posts or an array of arguments for the post query that this method is going. to perform. Default `10`. @param string $post_type_or_class Optional. Either the post type to get or the name of post class to use for the returned posts. Default `any`. @param string $post_class Optional. The name of the post class to use for the returned posts. Default `Timber\Post`. @return array|bool|null Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:283
- →public import($info, $force = false)
Takes an array or object and adds the properties to the parent object @example ```php $data = array('airplane' => '757-200', 'flight' => '5316'); $post = new Timber\Post() $post->import(data); echo $post->airplane; //757-200 ``` @param array|object $info an object or array you want to grab data from to attach to the Timber object Inherited from Timber\Core Defined in <ROOT>wp-content/plugins/timber-library/lib/Core.php:59
- →public link() -> string
Returns a full link to the term archive page like `http://example.com/category/news` @api @example ```twig See all posts in: <a href="{{ term.link }}">{{ term.name }}</a> ``` @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:398
- →public meta($field_name) -> string
Retrieves and outputs meta information stored with a term. This will use both data stored under (old) ACF hacks and new (WP 4.6+) where term meta has its own table. If retrieving a special ACF field (repeater, etc.) you can use the output immediately in Twig — no further processing is required. @api @param string $field_name @example ```twig <div class="location-info"> <h2>{{ term.name }}</h2> <p>{{ term.meta('address') }}</p> </div> ``` @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:421
- →public path() -> string
Returns a relative link (path) to the term archive page like `/category/news` @api @example ```twig See all posts in: <a href="{{ term.path }}">{{ term.name }}</a> ``` @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:435
- →public posts($numberposts_or_args = 10, $post_type_or_class = any, $post_class = "") -> array|bool|null
Gets posts that have the current term assigned. @api @example ```twig <h4>Recent posts in {{ term.name }}</h4> <ul> {% for post in term.posts(3, 'post') %} <li> <a href="{{ post.link }}">{{ post.title }}</a> </li> {% endfor %} </ul> ``` If you need more control over the query that is going to be performed, you can pass your custom query arguments in the first parameter. ```twig <h4>Our branches in {{ region.name }}</h4> <ul> {% for branch in region.posts({ posts_per_page: -1, orderby: 'menu_order' }, 'branch', 'Branch') %} <li> <a href="{{ branch.link }}">{{ branch.title }}</a> </li> {% endfor %} </ul> ``` @param int|array $numberposts_or_args Optional. Either the number of posts or an array of arguments for the post query that this method is going. to perform. Default `10`. @param string $post_type_or_class Optional. Either the post type to get or the name of post class to use for the returned posts. Default `any`. @param string $post_class Optional. The name of the post class to use for the returned posts. Default `Timber\Post`. @return array|bool|null Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:487
- →public title()
@api @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:495
- →public update($key, $value)
@param string $key @param mixed $value Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:348
- →protected static get_tid($tid) -> int|array
@internal @param int $tid @return int|array Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:199
- →protected get_term($tid) -> mixed
@internal @param int|object|array $tid @return mixed Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:161
- →protected get_term_from_query()
@internal @return integer Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:108
- →protected get_term_meta($tid) -> array
@internal @param int $tid @return array Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:150
- →protected init($tid)
@internal @param int $tid Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:125
- →Timber\Term(16)
- contents
- Static class properties (1)
- Available methods (30)
- public id -> integer58
- public ID -> integer58
- public object_type -> string(4) "term"
- public PostClass -> string(11) "Timber\Post"
- public TermClass -> string(4) "Term"
- public _children -> NULL
- public name -> string(25) "Holidays/Around the World"
- public taxonomy -> string(15) "recipe_category"
- public term_id -> integer58
- public slug -> string(25) "holidays-around-the-world"
- public term_group -> integer0
- public term_taxonomy_id -> integer58
- public parent -> integer0
- public count -> integer11
- public filter -> string(3) "raw"
- public term_order -> string(1) "0"
- public $representation :: string(4) "term"
- →public static from($tid, $taxonomy) -> static
@param $tid @param $taxonomy @return static Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:91
- →public __call($field, $args) -> mixed
This is helpful for twig to return properties and methods see: https://github.com/fabpot/Twig/issues/2 @return mixed Inherited from Timber\Core Defined in <ROOT>wp-content/plugins/timber-library/lib/Core.php:26
- →public __construct($tid = NULL, $tax = "")
@param int $tid @param string $tax Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:68
- →public __get($field) -> mixed
This is helpful for twig to return properties and methods see: https://github.com/fabpot/Twig/issues/2 @return mixed Inherited from Timber\Core Defined in <ROOT>wp-content/plugins/timber-library/lib/Core.php:35
- →public __isset($field) -> boolean
@return boolean Inherited from Timber\Core Defined in <ROOT>wp-content/plugins/timber-library/lib/Core.php:15
- →public __toString() -> string
@return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:81
- →public can_edit() -> bool
Can you edit this post/term/user? Well good for you. You're no better than me. @example ```twig {% if post.can_edit %} <a href="{{ post.edit_link }}">Edit</a> {% endif %} ``` ```html <a href="http://example.org/wp-admin/edit.php?p=242">Edit</a> ``` @return bool Inherited from Timber\Core Defined in <ROOT>wp-content/plugins/timber-library/lib/Core.php:100
- →public children()
@api @return array Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:361
- →public description()
@api @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:369
- →public edit_link()
@api @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:383
- →public get_children()
@internal @return array Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:331
- →public get_edit_url()
@internal @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:229
- →public get_field($field_name) -> mixed
@param string $field_name @return mixed Inherited from Timber\Core Defined in <ROOT>wp-content/plugins/timber-library/lib/Core.php:125
- →public get_link() -> string
@internal @deprecated since 1.0 @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:265
- →public get_meta_field($field_name) -> string
@internal @param string $field_name @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:238
- →public get_method_values() -> array
@return array Inherited from Timber\Core Defined in <ROOT>wp-content/plugins/timber-library/lib/Core.php:115
- →public get_path() -> string
@internal @deprecated since 1.0 @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:256
- →public get_posts($numberposts_or_args = 10, $post_type_or_class = any, $post_class = "") -> array|bool|null
Get posts that have the current term assigned. @internal @param int|array $numberposts_or_args Optional. Either the number of posts or an array of arguments for the post query that this method is going. to perform. Default `10`. @param string $post_type_or_class Optional. Either the post type to get or the name of post class to use for the returned posts. Default `any`. @param string $post_class Optional. The name of the post class to use for the returned posts. Default `Timber\Post`. @return array|bool|null Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:283
- →public import($info, $force = false)
Takes an array or object and adds the properties to the parent object @example ```php $data = array('airplane' => '757-200', 'flight' => '5316'); $post = new Timber\Post() $post->import(data); echo $post->airplane; //757-200 ``` @param array|object $info an object or array you want to grab data from to attach to the Timber object Inherited from Timber\Core Defined in <ROOT>wp-content/plugins/timber-library/lib/Core.php:59
- →public link() -> string
Returns a full link to the term archive page like `http://example.com/category/news` @api @example ```twig See all posts in: <a href="{{ term.link }}">{{ term.name }}</a> ``` @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:398
- →public meta($field_name) -> string
Retrieves and outputs meta information stored with a term. This will use both data stored under (old) ACF hacks and new (WP 4.6+) where term meta has its own table. If retrieving a special ACF field (repeater, etc.) you can use the output immediately in Twig — no further processing is required. @api @param string $field_name @example ```twig <div class="location-info"> <h2>{{ term.name }}</h2> <p>{{ term.meta('address') }}</p> </div> ``` @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:421
- →public path() -> string
Returns a relative link (path) to the term archive page like `/category/news` @api @example ```twig See all posts in: <a href="{{ term.path }}">{{ term.name }}</a> ``` @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:435
- →public posts($numberposts_or_args = 10, $post_type_or_class = any, $post_class = "") -> array|bool|null
Gets posts that have the current term assigned. @api @example ```twig <h4>Recent posts in {{ term.name }}</h4> <ul> {% for post in term.posts(3, 'post') %} <li> <a href="{{ post.link }}">{{ post.title }}</a> </li> {% endfor %} </ul> ``` If you need more control over the query that is going to be performed, you can pass your custom query arguments in the first parameter. ```twig <h4>Our branches in {{ region.name }}</h4> <ul> {% for branch in region.posts({ posts_per_page: -1, orderby: 'menu_order' }, 'branch', 'Branch') %} <li> <a href="{{ branch.link }}">{{ branch.title }}</a> </li> {% endfor %} </ul> ``` @param int|array $numberposts_or_args Optional. Either the number of posts or an array of arguments for the post query that this method is going. to perform. Default `10`. @param string $post_type_or_class Optional. Either the post type to get or the name of post class to use for the returned posts. Default `any`. @param string $post_class Optional. The name of the post class to use for the returned posts. Default `Timber\Post`. @return array|bool|null Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:487
- →public title()
@api @return string Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:495
- →public update($key, $value)
@param string $key @param mixed $value Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:348
- →protected static get_tid($tid) -> int|array
@internal @param int $tid @return int|array Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:199
- →protected get_term($tid) -> mixed
@internal @param int|object|array $tid @return mixed Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:161
- →protected get_term_from_query()
@internal @return integer Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:108
- →protected get_term_meta($tid) -> array
@internal @param int $tid @return array Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:150
- →protected init($tid)
@internal @param int $tid Defined in <ROOT>wp-content/plugins/timber-library/lib/Term.php:125



