Changeset 191
- Timestamp:
- 12/30/2013 06:40:32 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-template.php
r171 r191 641 641 add_filter( 'the_content_feed', 'wcpt_feed_event_info' ); 642 642 add_filter( 'the_excerpt_rss', 'wcpt_feed_event_info' ); 643 644 /** 645 * Add feed for WordCamp posts to the head section 646 * 647 * This helps publicize the feed, because it will show up in feed aggregators when users enter the site URL, even if they don't know the feed exists. 648 */ 649 function add_wordcamp_feed_link_to_head() { 650 if ( ! is_post_type_archive( 'wordcamp' ) ) { 651 ?> 652 653 <link rel="alternate" type="<?php echo esc_attr( feed_content_type() ); ?>" title="New WordCamp Announcements" href="<?php echo esc_url( get_post_type_archive_feed_link( 'wordcamp' ) ); ?>" /> 654 655 <?php 656 } 657 } 658 add_action( 'wp_head', 'add_wordcamp_feed_link_to_head', 4 ); // after feed_links_extra()
Note: See TracChangeset
for help on using the changeset viewer.