Tags::tag_page()
Description #
Tag page layout.
Source #
File: addons/tags/tags.php
public function tag_page() { global $question_tag; $question_tag = get_queried_object(); $question_args = array( 'paged' => max( 1, get_query_var( 'ap_paged' ) ), 'tax_query' => array( // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_tax_query array( 'taxonomy' => 'question_tag', 'field' => 'id', 'terms' => array( $question_tag->term_id ), ), ), ); $question_args = apply_filters( 'ap_tag_question_query_args', $question_args ); if ( $question_tag ) { anspress()->questions = ap_get_questions( $question_args ); include ap_get_theme_location( 'addons/tag/tag.php' ); } }
Expand full source code Collapse full source code View on GitHub: addons/tags/tags.php:80
Add your comment