Constructor.
Description
Sets up the WordPress query, if parameter is not empty.
See also
- WP_Query::parse_query(): for all available arguments.
Parameters
$query
string|arrayoptional- URL query string or array of vars.
Default:
''
Source
$tag_id = $this->get( 'tag_id' );
$tag = $this->get( 'tag' );
if ( $tag_id ) {
$term = get_term( $tag_id, 'post_tag' );
Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.