本文整理汇总了PHP中the_content_rss函数的典型用法代码示例。如果您正苦于以下问题:PHP the_content_rss函数的具体用法?PHP the_content_rss怎么用?PHP the_content_rss使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了the_content_rss函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: the_category_rss
)</dc:creator>
<?php
the_category_rss('rdf');
$more = 1;
if ($rss_use_excerpt) {
?>
<description><?php
the_excerpt_rss(get_settings('rss_excerpt_length'), 2);
?>
</description>
<?php
} else {
// use content
?>
<description><?php
the_content_rss('', 0, '', get_settings('rss_excerpt_length'), 2);
?>
</description>
<?php
}
// end else use content
?>
<content:encoded><![CDATA[<?php
the_content('', 0, '');
?>
]]></content:encoded>
</item>
<?php
}
}
?>
示例2: the_category_rss
<?php
the_category_rss('rdf');
$GLOBALS['more'] = 1;
if (get_settings('rss_use_excerpt')) {
?>
<description><?php
the_excerpt_rss(get_settings('rss_excerpt_length'), 2);
?>
</description>
<?php
} else {
// use content
?>
<description><?php
the_content_rss('', 0, '', get_settings('rss_excerpt_length'), 2);
?>
</description>
<?php
}
// end else use content
?>
<content:encoded><![CDATA[<?php
the_content_rss('', 0, '', 0, 3);
?>
]]></content:encoded>
</item>
<?php
}
}
?>
</rdf:RDF>
示例3: get_header
<?php
get_header();
if (have_posts()) {
while (have_posts()) {
the_post();
?>
<div class="post">
<a class="post-title" href="<?php
echo the_permalink();
?>
"><?php
the_title();
?>
</a>
<p class="post-content">
<?php
the_content_rss();
?>
</p>
</div>
<?php
}
} else {
echo '<p>No content found</p>';
}
get_footer();
示例4: header
}
header('Content-type: text/xml; charset=' . get_settings('blog_charset'), true);
$more = 1;
?>
<?php echo '<?xml version="1.0" encoding="'.get_settings('blog_charset').'"?'.'>'; ?>
<!-- generator="wordpress/<?php echo $wp_version ?>" -->
<rss version="0.92">
<channel>
<title><?php bloginfo_rss('name') ?></title>
<link><?php bloginfo_rss('url') ?></link>
<description><?php bloginfo_rss('description') ?></description>
<lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), 0); ?></lastBuildDate>
<docs>http://backend.userland.com/rss092</docs>
<language><?php echo get_option('rss_language'); ?></language>
<?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?>
<item>
<title><?php the_title_rss() ?></title>
<?php if (get_settings('rss_use_excerpt')) { ?>
<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
<?php } else { // use content ?>
<description><?php the_content_rss('', 0, '', get_settings('rss_excerpt_length')) ?></description>
<?php } ?>
<link><?php permalink_single_rss() ?></link>
</item>
<?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>
</channel>
</rss>
示例5: the_title_rss
the_title_rss();
?>
</title>
<?php
if (get_option('rss_use_excerpt')) {
?>
<description><![CDATA[<?php
the_excerpt_rss();
?>
]]></description>
<?php
} else {
// use content
?>
<description><?php
the_content_rss('', 0, '', get_option('rss_excerpt_length'));
?>
</description>
<?php
}
?>
<link><?php
permalink_single_rss();
?>
</link>
<?php
do_action('rss_item');
?>
</item>
<?php
}
示例6: do_action
<admin:generatorAgent rdf:resource="http://wordpress.org/?v=<?php echo $wp_version ?>"/>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
<?php do_action('rdf_header'); ?>
<items>
<rdf:Seq>
<?php while (have_posts()): the_post(); ?>
<rdf:li rdf:resource="<?php permalink_single_rss() ?>"/>
<?php endwhile; ?>
</rdf:Seq>
</items>
</channel>
<?php rewind_posts(); while (have_posts()): the_post(); ?>
<item rdf:about="<?php permalink_single_rss() ?>">
<title><?php the_title_rss() ?></title>
<link><?php permalink_single_rss() ?></link>
<dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', $post->post_date_gmt, false); ?></dc:date>
<dc:creator><?php the_author() ?></dc:creator>
<?php the_category_rss('rdf') ?>
<?php if (get_option('rss_use_excerpt')) : ?>
<description><?php the_excerpt_rss() ?></description>
<?php else : ?>
<description><?php the_content_rss('', 0, '', get_option('rss_excerpt_length'), 2) ?></description>
<content:encoded><![CDATA[<?php the_content('', 0, '') ?>]]></content:encoded>
<?php endif; ?>
<?php do_action('rdf_item'); ?>
</item>
<?php endwhile; ?>
</rdf:RDF>
示例7: the_title
the_title();
?>
</h2>
<?php
if (get_option('gallery-use-featured-content')) {
?>
<p><?php
$key = "featuredtext";
echo get_post_meta($post->ID, $key, true);
?>
</p>
<?php
} else {
?>
<p><?php
the_content_rss('', 0, '', $wordquantity);
?>
</p>
<?php
}
?>
<a href="<?php
the_permalink();
?>
" title="Read More" class="open"></a>
<img src="<?php
$key = "articleimg";
echo get_post_meta($post->ID, $key, true);
?>
" alt="<?php
$key = "alttext";
示例8: the_title
?>
" rel="bookmark" title="Permanent Link to <?php
the_title();
?>
"><?php
the_title();
?>
</a></h2>
<h3><?php
the_time('F jS, Y');
?>
</h3>
</div>
<div class="entrybody">
<?php
the_content_rss('', TRUE, '', 22);
?>
</div>
<div class="entrymeta">Posted in <?php
the_category(', ');
?>
| <?php
edit_post_link('Edit', '', ' | ');
?>
<?php
comments_popup_link('No Comments »', '1 Comment »', '% Comments »');
?>
</div>
</div>
示例9: the_excerpt_rss
?>
<summary type="text/html"><?php
the_excerpt_rss(get_settings('rss_excerpt_length'), 2);
?>
</summary>
<?php
} else {
// use content
?>
<summary type="text/html"><?php
the_content_rss('', 0, '', get_settings('rss_excerpt_length'), 2);
?>
</summary>
<?php
}
// end else use content
?>
<content type="text/html" mode="escaped" xml:base="<?php
permalink_single_rss();
?>
"><![CDATA[<?php
the_content_rss('', 0, '', 0, 1);
?>
]]></content>
</entry>
<?php
}
}
?>
</feed>
示例10: the_title
</div>
<div class="text">
<div class="glyph"><div class="symbol"></div></div>
<div class="titleheading">
<h3><?php
the_title();
?>
</h3>
</div>
<div class="excerpt">
<?php
the_content_rss('', FALSE, '', 150);
?>
</div>
<div class="dateheading">
<?php
the_date();
?>
</div>
<div class="hiddendate">5<?php
//echo "-"; the_time('Ymd')
?>
</div>
<div class="hiddengroup"><?php
$category = get_the_category();
示例11: while
</h2>
<?php
if (have_posts()) {
while (have_posts()) {
the_post();
?>
<article>
<h3><a href="<?php
the_permalink();
?>
"><?php
the_title();
?>
</a></h3>
<p><p><?php
the_content_rss('', true, '', 30);
?>
</p></p>
<a href="<?php
the_permalink();
?>
"><?php
the_post_thumbnail();
?>
</a>
<p class="post_meta"><?php
echo get_the_date();
?>
</p>
</article>
<?php
示例12: printf
" title="<?php
printf(__('Read full post: %s', 'mim'), wp_specialchars(get_the_title(), 1));
?>
"><?php
the_title();
?>
</a> <span><?php
unset($previousday);
the_date('Y-m-d', '', '');
?>
</span></h2>
<?php
if ($postcount < $highlightposts && is_home() && !is_paged()) {
?>
<div class="ec"><?php
the_content_rss('', true, '', 20, 2);
?>
</div>
<?php
}
$postcount++;
}
if (mim_show_navigation()) {
?>
<div class="nav"><?php
posts_nav_link(' | ', '« Newer posts', 'Older posts »');
?>
</div>
<?php
}
} else {
示例13: while
<?php
$items_count = 0;
while ($row = mysql_fetch_object($result)) {
start_b2();
?>
<item>
<title><?php
the_title_rss();
?>
</title><?php
// we might use this in the future, but not now, that's why it's commented in PHP
// so that it doesn't appear at all in the RSS
// echo "<category>"; the_category_unicode(); echo "</category>";
?>
<description><?php
the_content_rss('', 0, '', $rss_excerpt_length, $rss_encoded_html);
?>
</description>
<link><?php
permalink_single_rss();
?>
</link>
</item>
<?php
$items_count++;
if ($items_count == $posts_per_rss && empty($m)) {
break;
}
}
?>
示例14: widget_simplr_recent_entries
function widget_simplr_recent_entries($args)
{
global $wpdb, $comments, $comment;
extract($args);
$options = get_option('widget_simplr_recent_entries');
$title = empty($options['title']) ? __('Recent Entries', 'simplr') : $options['title'];
$count = empty($options['count']) ? __('5', 'simplr') : $options['count'];
global $wpdb, $r;
$r = new wp_query("showposts={$count}");
if ($r->have_posts()) {
?>
<?php
echo $before_widget;
?>
<?php
echo $before_title;
echo $title;
echo $after_title;
?>
<ul><?php
while ($r->have_posts()) {
$r->the_post();
?>
<li class="hentry" onclick="location.href='<?php
the_permalink();
?>
';">
<span class="entry-title"><a href="<?php
the_permalink();
?>
" title="Continue reading <?php
get_the_title();
the_title();
?>
" rel="bookmark"><?php
get_the_title();
the_title();
?>
</a></span>
<span class="entry-summary"><?php
the_content_rss('', TRUE, '', 10);
?>
</span>
<span class="entry-date"><abbr class="published" title="<?php
the_time('Y-m-d\\TH:i:sO');
?>
"><?php
unset($previousday);
printf(__('%1$s', 'simplr'), the_date('F jS, Y', false));
?>
</abbr></span>
<span class="entry-comments"><?php
comments_popup_link(__('No comments', 'simplr'), __('One comment', 'simplr'), __('% comments', 'simplr'));
?>
</span>
</li>
<?php
}
?>
</ul>
<?php
echo $after_widget;
}
}
示例15: the_permalink
?>
<li>
<span class="highlightlink"><img src="http://wakingideas.com/wordpress/wp-content/themes/wakingideas/images/icon_track.png" alt="link" /> <a href="<?php
the_permalink();
?>
" title="Permalink to <?php
the_title();
?>
" rel="bookmark"><?php
the_title();
?>
</a>
</span>
<?php
the_content_rss('', TRUE, '', 30);
?>
</li>
<?php
}
?>
</ul>
</div>
<div id="sidebar">
<h3>Outside the Box</h3>
<ul>
<?php
c2c_get_recent_posts($num_posts = 5, $format = "<li><span class=\"linkauthor\">%post_author%</span> <br /> <div class=\"linkdesc\"><img src=\"http://wakingideas.com/wordpress/wp-content/themes/wakingideas/images/icon_track.png\" alt=\"link\" /> %post_content%</div></li>", $categories = '7');
?>
</ul>