AnsPress_Category::category_feed()
Description #
Category feed link in head.
Source #
File: addons/free/category.php
public static function category_feed() { if ( is_question_category() ) { $question_category = get_queried_object(); echo '<link href="' . esc_url( home_url( 'feed' ) ) . '?post_type=question&question_category=' . esc_url( $question_category->slug ) . '" title="' . esc_attr__( 'Question category feed', 'anspress-question-answer' ) . '" type="application/rss+xml" rel="alternate">'; } }
Expand full source code Collapse full source code View on GitHub: addons/free/category.php:789
Add your comment