Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: the_title_rss

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
264           while ( $next_posts = array_splice($post_ids, 0, 20) ) {
265                $where = "WHERE ID IN (".join(',', $next_posts).")";
266                $posts = $wpdb->get_results("SELECT * FROM $wpdb->posts $where ORDER BY post_date_gmt ASC");
267                     foreach ($posts as $post) {
268                // Don't export revisions.  They bloat the export.
269                if ( 'revision' == $post->post_type )
270                     continue;
271                setup_postdata($post); ?>
272 <item>
273 <title><?php echo apply_filters('the_title_rss', $post->post_title); ?></title>
274 <link><?php the_permalink_rss() ?></link>
275 <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false); ?></pubDate>
276 <dc:creator><?php echo wxr_cdata(get_the_author()); ?></dc:creator>
277 <?php wxr_post_taxonomy() ?>
279 <guid isPermaLink="false"><?php the_guid(); ?></guid>
280 <description></description>
281 <content:encoded><?php echo wxr_cdata( apply_filters('the_content_export', $post->post_content) ); ?></content:encoded>
282 <excerpt:encoded><?php echo wxr_cdata( apply_filters('the_excerpt_export', $post->post_excerpt) ); ?></excerpt:encoded>