AnsPress_Theme::wp_head()
Description #
Add feed and links in HEAD of the document
Source #
File: includes/class-theme.php
public static function wp_head() { if ( ap_current_page( 'base' ) ) { $q_feed = get_post_type_archive_feed_link( 'question' ); $a_feed = get_post_type_archive_feed_link( 'answer' ); echo '<link rel="alternate" type="application/rss+xml" title="' . esc_attr__( 'Question Feed', 'anspress-question-answer' ) . '" href="' . esc_url( $q_feed ) . '" />'; echo '<link rel="alternate" type="application/rss+xml" title="' . esc_attr__( 'Answers Feed', 'anspress-question-answer' ) . '" href="' . esc_url( $a_feed ) . '" />'; } }
Expand full source code Collapse full source code View on GitHub: includes/class-theme.php:213
Add your comment